W3C traceparent/tracestate propagation, TracingHttpClient decorator, and async batch OTLP/HTTP JSON exporter with Lifecycle flush for unmbt/ciallo
impl CapabilityBundle for OtelBundlepub(all) struct OtelSpan {
trace_id : String
span_id : String
parent_span_id : String?
name : String
kind : SpanKind
start_time_unix_nano : Int64
end_time_unix_nano : Int64
status : SpanStatus
attributes : Map[String, String]
} derive(Eq, Debug)pub struct OtlpBatchExporter {
endpoint : String
resource : ResourceInfo
http_client : &HttpClient
max_batch_size : Int
headers : Map[String, String]
pending : Array[OtelSpan]
exported_count : Int64
}impl Lifecycle for OtlpBatchExporterfn OtlpBatchExporter::OtlpBatchExporter(endpoint? : String, resource~ : ResourceInfo, http_client~ : &HttpClient, max_batch_size? : Int, headers? : Map[String, String]) -> OtlpBatchExporterfn ResourceInfo::ResourceInfo(service_name~ : String, service_version? : String, environment? : String) -> ResourceInfopub struct TracingHttpClient {
inner : &HttpClient
parent_trace : TraceContext
clock : &Clock
exporter : OtlpBatchExporter?
}impl HttpClient for TracingHttpClientfn TracingHttpClient::TracingHttpClient(inner : &HttpClient, parent_trace~ : TraceContext, clock~ : &Clock, exporter? : OtlpBatchExporter) -> TracingHttpClientInstall
Download zipW3C traceparent/tracestate propagation, TracingHttpClient decorator, and async batch OTLP/HTTP JSON exporter with Lifecycle flush for unmbt/ciallo