crabka-telemetry 0.3.5

Generic OTLP distributed-tracing pipeline for Crabka services
Documentation

crabka-telemetry

Crates.io Docs.rs CI

Generic OTLP distributed-tracing pipeline for Crabka services.

This crate is part of Crabka, a Rust implementation of Kafka-compatible infrastructure and clients.

Install

crabka-telemetry = "0.3.2"

For workspace development, use the path dependency from this repository instead.

Usage example

Install stdout tracing plus optional OTLP export for a Crabka service process:

use crabka_telemetry::{init, OtlpConfig};

# fn run() -> Result<(), Box<dyn std::error::Error>> {
let otlp = OtlpConfig::from_env(
    |key| std::env::var(key).ok(),
    "broker-1",
    env!("CARGO_PKG_VERSION"),
    "crabka-broker",
);
let guard = init(otlp, "info", "info", "crabka-broker")?;
tracing::info!("tracing is configured");
guard.shutdown();
# Ok(())
# }

Documentation

API documentation is published on docs.rs/crabka-telemetry. The repository README contains project-wide setup, development, and release notes.

License

Apache-2.0. See the repository LICENSE and NOTICE files for details.