diff --git a/stats/otel.go b/stats/otel.go index 28af17c4..9b45d371 100644 --- a/stats/otel.go +++ b/stats/otel.go @@ -13,6 +13,7 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/spf13/cast" + ootel "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/metric" noopMetric "go.opentelemetry.io/otel/metric/noop" @@ -62,6 +63,10 @@ type otelStats struct { prometheusGatherer prometheus.Gatherer } +func OtelVersion() string { + return ootel.Version() +} + func (s *otelStats) Start(ctx context.Context, goFactory GoRoutineFactory) error { if !s.config.enabled.Load() { return nil