1 unstable release
0.1.0 | Apr 16, 2024 |
---|
#34 in #kit
9KB
128 lines
Tools Kit for observable services.
How to use it
Configure tracing
- Simple scenario with environment based configuration and plain output, ideal for Rust tests:
let _result = observability::tracing::init();
- Open Telemetry Protocol configured tracing.
let _result = observability::otlp_tracing::try_init(env!("CARGO_PKG_NAME"));
You can use docker-compose up -d
to run Jaeger and see OTLP
in action.
lib.rs
:
Open Telemetry Protocol configured tracing.
Dependencies
~12–20MB
~250K SLoC