diagprint_otel/lib.rs
1//! Privacy-aware OpenTelemetry integration for diagprint.
2//!
3//! `diagprint-otel` maps structured diagnostics to OpenTelemetry events without
4//! owning exporter, collector, or SDK configuration.
5//!
6//! Applications remain free to choose OTLP, Jaeger, Zipkin, stdout, custom
7//! exporters, sampling, batching, and runtime configuration.
8//!
9//! Free-form diagnostic content is not exported in plaintext by default.
10//! Arbitrary structured diagnostic attributes are not exported at all unless
11//! explicitly enabled through [`AttributeExport`].
12
13mod adapter;
14mod event;
15mod policy;
16
17pub use adapter::TelemetryAdapter;
18
19pub use event::{DIAGNOSTIC_EVENT_NAME, TelemetryEvent};
20
21pub use policy::{AttributeExport, LocationExport, TelemetryPolicy, TextExport};
22
23pub use opentelemetry;
24pub use tracing_opentelemetry;