Documentation
¶
Overview ¶
Package observability provides OpenTelemetry setup for the OpenBotStack runtime.
It initializes tracing and metrics providers. The Prometheus metrics exporter is always enabled for the /metrics endpoint. Tracing is only enabled when otel_enabled is set to true in configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMetrics ¶
func InitMetrics() error
InitMetrics creates OTel metric instruments. Must be called after Setup().
func MetricsMiddleware ¶
MetricsMiddleware records HTTP request metrics for all requests.
func PrometheusHandler ¶
PrometheusHandler returns an http.Handler that serves Prometheus-format metrics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.