Documentation
¶
Overview ¶
Package observability wires OpenTelemetry for this service. It is the only place telemetry setup lives, and it follows the platform interface pattern: configuration comes exclusively from standard OTEL_* environment variables, export is OTLP, and no cloud SDK is ever imported. Where telemetry lands (Cloud Trace, Jaeger, anything else) is the collector's concern, not ours.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
Setup configures the global tracer provider and W3C trace-context propagation. It returns a shutdown function that flushes spans; call it on exit. When no OTLP endpoint is configured — neither the generic OTEL_EXPORTER_OTLP_ENDPOINT nor the signal-specific (and higher-precedence) OTEL_EXPORTER_OTLP_TRACES_ENDPOINT — tracing stays a no-op and the returned shutdown does nothing.
Types ¶
This section is empty.