Module setup

Module setup 

Source
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 via opentelemetry-otlp.
  • otel-gcp: Adds Google Cloud Trace export via opentelemetry-gcloud-trace.

Without any of these features, TelemetrySetup::init is a no-op that returns Ok(()).

Structs§

TelemetrySetup
Configuration for telemetry export.