Skip to content

aetelier_telemetry

OpenTelemetry instrumentation for the aetelier-sdk engine.

aetelier-telemetry provides a self-contained OTel foundation:

  • Metrics: Counter, Histogram, and Gauge instruments for ingestion pipeline observability (meters::IngestionMeters).
  • Traces: Bridged from the tracing crate via tracing-opentelemetry, so existing tracing::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 aetelier_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 aetelier_telemetry with a one-line summary each. Signatures and source live in the SDK repository.

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.