objects

command
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL