atelier_telemetry¶
OpenTelemetry instrumentation for the atelier-sdk engine.
atelier-telemetry provides a self-contained OTel foundation:
- Metrics: Counter, Histogram, and Gauge instruments for ingestion
pipeline observability (
meters::IngestionMeters). - Traces: Bridged from the
tracingcrate viatracing-opentelemetry, so existingtracing::info_span!calls automatically become OTel spans. - Exporters: Pluggable backend selection — stdout for development,
OTLP gRPC for production, no-op for tests (
exporters::ExporterKind).
Quick Start¶
use atelier_telemetry::{TelemetryConfig, init_telemetry};
let config = TelemetryConfig::default();
let guard = init_telemetry(&config)?;
// … run workers …
drop(guard); // flushes and shuts down providers
Crate Organisation¶
| Module | Purpose |
|---|---|
attributes |
Shared OTel attribute keys and builders |
meters |
Instrument definitions and recording helpers |
exporters |
Exporter selection and MeterProvider construction |
Skeleton API reference
This page lists the public items in atelier_telemetry. For full
signatures, source links, and trait implementations, see the
docs.rs page for this module.
Structs¶
| Item | Summary |
|---|---|
TelemetryConfig |
Top-level telemetry configuration, typically deserialized from TOML. |
TelemetryGuard |
RAII guard that shuts down the OTel MeterProvider on drop. |
Functions¶
| Item | Summary |
|---|---|
ingestion_meters |
Create IngestionMeters from the global meter provider. |
init_telemetry |
Initialize the OpenTelemetry telemetry stack. |