diff --git a/internal/otel/metrics.go b/internal/otel/metrics.go index d0f92b2..86ee4b9 100644 --- a/internal/otel/metrics.go +++ b/internal/otel/metrics.go @@ -40,6 +40,8 @@ func setupMetrics( sdkmetric.WithReader(sdkmetric.NewPeriodicReader(exporter)), sdkmetric.WithResource(resource), ) + otel.SetMeterProvider(provider) + lifecycle.Append(fx.Hook{ OnStop: func(ctx context.Context) error { return provider.Shutdown(ctx)