3 releases (breaking)
Uses new Rust 2024
| new 0.30.0 | Mar 31, 2026 |
|---|---|
| 0.29.0 | Mar 27, 2026 |
| 0.28.0 | Feb 24, 2026 |
#2602 in WebAssembly
278 downloads per month
Used in 24 crates
(2 directly)
19KB
326 lines
Telemetry
Telemetry is a module that provides functionality for collecting and reporting OpenTelemetry-based metrics.
Omnia OpenTelemetry
OpenTelemetry tracing and metrics integration for the Omnia runtime. This crate initializes tracing-subscriber, OTLP span exporters, and metric readers with retry logic so that host runtimes report telemetry out-of-the-box.
Note: This is a host-side library (not compiled for
wasm32). It is called internally byomnia::create()during runtime startup. Most users do not need to depend on this crate directly.
Usage
use omnia_otel::Telemetry;
// Minimal -- uses RUST_LOG for filtering, no OTLP export
Telemetry::new("my-service").build()?;
// With OTLP export to a collector
Telemetry::new("my-service")
.endpoint("http://localhost:4317")
.build()?;
The OTEL_GRPC_URL environment variable is also respected if no explicit endpoint is set.
License
MIT OR Apache-2.0
Dependencies
~0–6.5MB
~103K SLoC