From df8b6e6862d950c880966d82f6ecaa694e48a3e2 Mon Sep 17 00:00:00 2001 From: Gabriel MABILLE Date: Thu, 7 Nov 2024 11:29:25 +0100 Subject: [PATCH] Fix: Close grpc_authenticator fallback trace (#96009) Fix: Close grpc_authenticator trace --- pkg/services/authn/grpcutils/grpc_authenticator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/authn/grpcutils/grpc_authenticator.go b/pkg/services/authn/grpcutils/grpc_authenticator.go index dc9f3701eed..bc718b5cc9a 100644 --- a/pkg/services/authn/grpcutils/grpc_authenticator.go +++ b/pkg/services/authn/grpcutils/grpc_authenticator.go @@ -98,6 +98,7 @@ func NewGrpcAuthenticatorWithFallback(cfg *setting.Cfg, reg prometheus.Registere func (f *AuthenticatorWithFallback) Authenticate(ctx context.Context) (context.Context, error) { ctx, span := f.tracer.Start(ctx, "grpcutils.AuthenticatorWithFallback.Authenticate") + defer span.End() span.SetAttributes(attribute.Bool("fallback_used", false)) // Try to authenticate with the new authenticator first newCtx, err := f.authenticator.Authenticate(ctx)