#observability #tracing #open-telemetry

observability-kit

Configuration and other common entities related to observability

1 unstable release

0.1.0 Apr 16, 2024

#457 in Debugging

Download history 150/week @ 2024-04-15

150 downloads per month

MIT/Apache

9KB
128 lines

Tools Kit for observable services.

How to use it

Configure tracing

  1. Simple scenario with environment based configuration and plain output, ideal for Rust tests:
    let _result = observability::tracing::init();
  1. 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

~10–14MB
~231K SLoC