moonbitstack/moontel/meter does not have a README file
pub(all) suberror Refused {
EmptyName
InvalidName(name~ : String)
LongName(name~ : String, got~ : Int, limit~ : Int)
Bounds(name~ : String, at~ : Int)
Conflict(name~ : String, got~ : InstrumentKind, want~ : InstrumentKind)
} derive(Eq, Debug)fn Counter::add(self : Counter, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitfn Counter::inc(self : Counter, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitfn ExponentialHistogram::record(self : ExponentialHistogram, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitfn Gauge::set(self : Gauge, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitfn Histogram::record(self : Histogram, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitpub struct Instrument {
name : String
description : String
unit : String
kind : InstrumentKind
bounds : Array[Double]
max_buckets : Int
limits : MeterLimits
temporality : Temporality
exemplar : ExemplarFilter
current : () -> TraceContext?
now : () -> Int64
start : Int64
observe : (Observer) -> Unit?
streams : Array[Stream]
dropped : Ref[Int]
}fn Meter::exponential_histogram(self : Meter, name : String, description? : String, unit? : String, scale? : Int, max_buckets? : Int) -> ExponentialHistogram raise Refusedfn Meter::observable_counter(self : Meter, name : String, description? : String, unit? : String, observe~ : (Observer) -> Unit) -> ObservableCounter raise Refusedfn Meter::observable_gauge(self : Meter, name : String, description? : String, unit? : String, observe~ : (Observer) -> Unit) -> ObservableGauge raise Refusedfn Meter::observable_up_down_counter(self : Meter, name : String, description? : String, unit? : String, observe~ : (Observer) -> Unit) -> ObservableUpDownCounter raise Refusedfn Meter::up_down_counter(self : Meter, name : String, description? : String, unit? : String) -> UpDownCounter raise Refusedfn MeterLimits::new(attributes? : Int, attribute_value_length? : Int?, series? : Int, exemplars? : Int) -> MeterLimitspub struct MeterProvider {
sink : &MetricSink
now : () -> Int64
temporality : Temporality
limits : MeterLimits
exemplar : ExemplarFilter
current : () -> TraceContext?
views : Array[View]
start : Int64
instruments : Ref[Array[Instrument]]
}fn MeterProvider::meter(self : MeterProvider, name~ : String, version? : String, attributes? : Array[(String, Value)]) -> Meterfn MeterProvider::new(sink~ : &MetricSink, now~ : () -> Int64, temporality? : Temporality, limits? : MeterLimits, exemplar? : ExemplarFilter, current? : () -> TraceContext?, views? : Array[View], start? : Int64) -> MeterProviderfn Observer::observe(self : Observer, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitpub struct Series {
attributes : Attributes
key : String
start : Int64
point : Point
exemplars : Array[Exemplar]
reported : Double?
}pub struct Stream {
name : String
description : String
aggregation : Aggregation
attribute_keys : Array[String]?
series : Array[Series]
}fn UpDownCounter::add(self : UpDownCounter, value : Double, attributes? : Attributes, at? : Int64, context? : TraceContext) -> Unitpub(all) struct View {
instrument : String
kind : InstrumentKind?
name : String?
description : String?
attribute_keys : Array[String]?
aggregation : Aggregation?
} derive(Eq, Debug)fn View::new(instrument? : String, kind? : InstrumentKind, name? : String, description? : String, attribute_keys? : Array[String], aggregation? : Aggregation) -> Viewfn exponential_index(value : Double, scale : Int) -> Intfn gen_ai_client_attributes(provider~ : String, operation~ : String, request_model~ : String, response_model? : String, agent_name? : String, conversation_id? : String) -> Attributeslet instrument_name_limit : Intfn is_valid_name(name : String) -> Boollet max_exponential_buckets : Intlet max_exponential_scale : Intlet min_exponential_scale : IntInstall
Download zipOpenTelemetry for MoonBit.