Documentation
¶
Overview ¶
Package telemetry configures out-of-the-box OpenTelemetry metrics (Prometheus /metrics) and tracing (OTLP/HTTP when configured).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init initializes global OTel MeterProvider (Prometheus OOTB, plus OTLP/HTTP when OTEL_EXPORTER_OTLP_ENDPOINT is set) and TracerProvider.
func InitLogger ¶
InitLogger configures the default slog JSON logger on stderr (safe for stdio MCP).
func MetricsHandler ¶
MetricsHandler returns the Prometheus /metrics HTTP handler.
Types ¶
This section is empty.