Rust Crate
SPDX-License-Identifier: Apache-2.0 SPDX-FileCopyrightText: Copyright (C) 2026 provide.io llc
provide-telemetry ships a Rust crate in this repo under rust/.
Features
- Default build: fallback telemetry primitives, context guards, schema enforcement, and in-process metrics.
otel: enables OpenTelemetry dependencies used by the Rust E2E/OpenObserve paths.
Install locally from the repo:
Examples
cargo run --manifest-path rust/Cargo.toml --example telemetry_01_basiccargo run --manifest-path rust/Cargo.toml --example telemetry_02_w3c_propagationcargo run --manifest-path rust/Cargo.toml --example telemetry_03_sampling_and_backpressurecargo run --manifest-path rust/Cargo.toml --example telemetry_04_runtime_reconfigurecargo run --manifest-path rust/Cargo.toml --example telemetry_05_pii_and_cardinality_policycargo run --manifest-path rust/Cargo.toml --example telemetry_06_exporter_resilience_modescargo run --manifest-path rust/Cargo.toml --example telemetry_07_slo_and_health_snapshotcargo run --manifest-path rust/Cargo.toml --example telemetry_08_full_hardening_profilecargo run --manifest-path rust/Cargo.toml --example telemetry_09_error_handling_and_degradationcargo run --manifest-path rust/Cargo.toml --example telemetry_10_performance_metricscargo run --manifest-path rust/Cargo.toml --example telemetry_11_lazy_loading_proofcargo run --manifest-path rust/Cargo.toml --example telemetry_12_error_fingerprint_and_sessionscargo run --manifest-path rust/Cargo.toml --example telemetry_13_security_hardeningcargo run --manifest-path rust/Cargo.toml --features governance --example telemetry_14_data_governancecargo run --manifest-path rust/Cargo.toml --features otel --example openobserve_01_emit_all_signalscargo run --manifest-path rust/Cargo.toml --features otel --example openobserve_02_verify_ingestioncargo run --manifest-path rust/Cargo.toml --features otel --example openobserve_03_hardening_profilecargo run --manifest-path rust/Cargo.toml --features otel --example e2e_cross_language_clientcargo run --manifest-path rust/Cargo.toml --features otel --example e2e_cross_language_server -- --port 18765
The Rust example suite now covers the same numbered telemetry examples as Python and TypeScript, includes Rust OpenObserve examples, and keeps the OTLP E2E client/server pair used by the cross-language verification flow.