diff --git a/cmd/gcp/otel.go b/cmd/gcp/otel.go index 592fb033..6340e63b 100644 --- a/cmd/gcp/otel.go +++ b/cmd/gcp/otel.go @@ -87,7 +87,7 @@ func initOTel(ctx context.Context, traceFraction float64, origin string) func(co sdktrace.WithBatcher(te), sdktrace.WithResource(resources), ) - shutdownFuncs = append(shutdownFuncs, mp.Shutdown) + shutdownFuncs = append(shutdownFuncs, tp.Shutdown) otel.SetTracerProvider(tp) return shutdown