observability

package
v0.11.0 Latest Latest
Warning

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

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

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

func Setup(ctx context.Context, serviceName string) (func(context.Context) error, error)

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.

Jump to

Keyboard shortcuts

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