Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
snikch authored and aeneasr committed Feb 25, 2021
1 parent daf44cb commit 546691b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipeline/authn/authenticator_oauth2_introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ func (a *AuthenticatorOAuth2Introspection) tokenToCache(config *AuthenticatorOAu
}
}

func (a *AuthenticatorOAuth2Introspection) traceRequest(ctx context.Context, req *http.Request) func(){
func (a *AuthenticatorOAuth2Introspection) traceRequest(ctx context.Context, req *http.Request) func() {
tracer := opentracing.GlobalTracer()
if tracer == nil {
return func(){}
return func() {}
}

parentSpan := opentracing.SpanFromContext(ctx)
Expand All @@ -141,7 +141,7 @@ func (a *AuthenticatorOAuth2Introspection) traceRequest(ctx context.Context, req
}

urlStr := req.URL.String()
clientSpan := tracer.StartSpan(req.Method + " " + urlStr, opts...)
clientSpan := tracer.StartSpan(req.Method+" "+urlStr, opts...)

ext.SpanKindRPCClient.Set(clientSpan)
ext.HTTPUrl.Set(clientSpan, urlStr)
Expand Down

0 comments on commit 546691b

Please sign in to comment.