mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Close grpc_authenticator fallback trace (#96009)
Fix: Close grpc_authenticator trace
This commit is contained in:
parent
c151021b16
commit
df8b6e6862
@ -98,6 +98,7 @@ func NewGrpcAuthenticatorWithFallback(cfg *setting.Cfg, reg prometheus.Registere
|
|||||||
|
|
||||||
func (f *AuthenticatorWithFallback) Authenticate(ctx context.Context) (context.Context, error) {
|
func (f *AuthenticatorWithFallback) Authenticate(ctx context.Context) (context.Context, error) {
|
||||||
ctx, span := f.tracer.Start(ctx, "grpcutils.AuthenticatorWithFallback.Authenticate")
|
ctx, span := f.tracer.Start(ctx, "grpcutils.AuthenticatorWithFallback.Authenticate")
|
||||||
|
defer span.End()
|
||||||
span.SetAttributes(attribute.Bool("fallback_used", false))
|
span.SetAttributes(attribute.Bool("fallback_used", false))
|
||||||
// Try to authenticate with the new authenticator first
|
// Try to authenticate with the new authenticator first
|
||||||
newCtx, err := f.authenticator.Authenticate(ctx)
|
newCtx, err := f.authenticator.Authenticate(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user