Documentation
¶
Overview ¶
OTLP via pre-built observability.NewTracer, observability.NewMetrics, observability.NewLogs, then agent.WithTracer, agent.WithMetrics, agent.WithLogs. With no agent.WithLogger, the SDK wires the default logger to the OTLP log provider from [WithLogs] (same idea as logs under agent.WithObservabilityConfig). Do not combine this wiring with agent.WithObservabilityConfig on the same agent.
Run from repo root:
go run ./examples/agent_with_observability/objects/
Env: same as config/ (OTEL_EXPORTER_OTLP_ENDPOINT, OTLP_PROTOCOL, OTLP_INSECURE).
Click to show internal directories.
Click to hide internal directories.