rskit-observability — OpenTelemetry Integration
OpenTelemetry tracing, metrics, logs, and context propagation.
Features
tracer_provider()/init_tracer()— injectable OTLP trace provider with configurable sampling viaTracingConfiginit_metrics()— injectable OTLP metrics pipeline viaMetricsConfiginit_logs()— injectable OTLP log provider viaLogsConfigOperationContext— tracks service, operation, request ID, and elapsed timeServiceHealth— aggregate health status across registered componentsHealthStatus— Healthy / Degraded / Unhealthy- W3C Trace-Context propagation (
extract_trace_context/inject_trace_context) - OTLP over gRPC and HTTP/protobuf via
OtlpProtocol
Usage
[]
= "0.1.0-alpha.1"
use ;
let ctx = new;
// ... do work ...
ctx.end_operation;
let _elapsed = ctx.elapsed;
let health = new;
health.register;
health.update;
assert!;