From 7a22696190f203578255c6ab83ec7c539edbe5f2 Mon Sep 17 00:00:00 2001 From: Roger Ng Date: Wed, 14 May 2025 13:35:38 +0000 Subject: [PATCH] Fix unexpected otel err during shutdown --- cmd/gcp/otel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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