#open-telemetry #observability #tracing #configuration #kit #environment #protocols

observability-kit

Configuration and other common entities related to observability

1 unstable release

0.1.0 Apr 16, 2024

#34 in #kit

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

~12–20MB
~250K SLoC