Documentation
¶
Overview ¶
Package telemetry initializes OpenTelemetry for the agent loop.
Telemetry is off by default — no exporter is configured — so a fresh invocation makes zero outbound network calls. Consumers opt in by setting one of:
- "console" — writes spans to stderr; useful for local debug
- "otlp" — honors standard OTEL env vars (OTEL_EXPORTER_OTLP_ENDPOINT, etc.) to ship to a collector
- "none" — the default; no spans leave
ADK's telemetry.New constructs providers but does NOT install them as OTEL globals; you must call SetGlobalOtelProviders explicitly or ADK's instrumentation will run against the noop tracer. This package handles that.
Index ¶
Constants ¶
View Source
const ( ModeNone = "none" // default; no spans exported ModeConsole = "console" // stdout exporter; for local dev ModeOTLP = "otlp" // honors OTEL_EXPORTER_OTLP_ENDPOINT etc. )
Mode names recognized by Setup.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.