moonbitstack/moontel/trace does not have a README file
pub(open) trait Sampler {
fn should_sample(Self, SampleRequest) -> Decision
fn description(Self) -> String
}pub(all) struct Always {
}pub(all) struct Discard {
}pub(all) struct Link {
context : TraceContext
attributes : Array[(String, Value)]
} derive(Eq, Debug)pub(all) struct Never {
}impl Sampler for ParentBasedpub(all) struct SampleRequest {
parent : TraceContext?
trace_id : Bytes
name : String
kind : SpanKind
}pub struct Span {
context : TraceContext
parent : Bytes?
kind : SpanKind
start : Int64
recording : Bool
sink : &Sink
limits : Limits
span_name : Ref[String]
attribute_list : Ref[Array[(String, Value)]]
event_list : Ref[Array[Event]]
link_list : Ref[Array[Link]]
span_status : Ref[Status]
end_time : Ref[Int64?]
dropped : Ref[Dropped]
}pub(all) struct TraceContext {
trace_id : Bytes
span_id : Bytes
flags : Byte
state : TraceState
remote : Bool
} derive(Eq, Debug)fn TraceContext::new(trace_id~ : Bytes, span_id~ : Bytes, flags? : Byte, state? : TraceState, remote? : Bool) -> TraceContextfn TraceState::insert(self : TraceState, key~ : String, value~ : String) -> TraceState raise Refusedlet random_flag : Bytelet sampled_flag : Bytelet tracestate_limit : IntInstall
Download zipOpenTelemetry for MoonBit.