Expand description
OTLP exporter setup helpers for agent-level telemetry.
Provides a convenience TelemetrySetup builder that configures tracing-subscriber
with optional OpenTelemetry exporters. This is a higher-level wrapper around the
L0 [gemini_genai_rs::telemetry::TelemetryConfig] tailored for agent applications.
§Feature flags
tracing-support: Enables tracing-subscriber with env-filter and fmt layer.otel-otlp: Adds OTLP trace export viaopentelemetry-otlp.otel-gcp: Adds Google Cloud Trace export viaopentelemetry-gcloud-trace.
Without any of these features, TelemetrySetup::init is a no-op that returns Ok(()).
Structs§
- Telemetry
Setup - Configuration for telemetry export.