correct span names
This commit is contained in:
parent
88209ac11d
commit
7069813ec7
5 changed files with 4 additions and 6 deletions
|
@ -79,7 +79,6 @@ func Authorize(w http.ResponseWriter, r *http.Request, authorizer Authorizer) {
|
|||
AuthRequestError(w, r, nil, err, authorizer)
|
||||
return
|
||||
}
|
||||
ctx = r.Context()
|
||||
if authReq.RequestParam != "" && authorizer.RequestObjectSupported() {
|
||||
err = ParseRequestObject(ctx, authReq, authorizer.Storage(), IssuerFromContext(ctx))
|
||||
if err != nil {
|
||||
|
@ -452,7 +451,7 @@ func ParseAuthorizeCallbackRequest(r *http.Request) (id string, err error) {
|
|||
|
||||
// AuthResponse creates the successful authentication response (either code or tokens)
|
||||
func AuthResponse(authReq AuthRequest, authorizer Authorizer, w http.ResponseWriter, r *http.Request) {
|
||||
ctx, span := tracer.Start(r.Context(), "ValidateAuthRequest")
|
||||
ctx, span := tracer.Start(r.Context(), "AuthResponse")
|
||||
r = r.WithContext(ctx)
|
||||
defer span.End()
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ func (r *DeviceAuthorizationState) GetSubject() string {
|
|||
}
|
||||
|
||||
func CheckDeviceAuthorizationState(ctx context.Context, clientID, deviceCode string, exchanger Exchanger) (*DeviceAuthorizationState, error) {
|
||||
ctx, span := tracer.Start(ctx, "CheckDeviceAuthorization")
|
||||
ctx, span := tracer.Start(ctx, "CheckDeviceAuthorizationState")
|
||||
defer span.End()
|
||||
|
||||
storage, err := assertDeviceStorage(exchanger.Storage())
|
||||
|
|
|
@ -135,7 +135,6 @@ func CreateRouter(o OpenIDProvider, interceptors ...HttpInterceptor) chi.Router
|
|||
} else {
|
||||
router.Use(cors.New(defaultCORSOptions).Handler)
|
||||
}
|
||||
|
||||
router.Use(intercept(o.IssuerFromRequest, interceptors...))
|
||||
router.HandleFunc(healthEndpoint, healthHandler)
|
||||
router.HandleFunc(readinessEndpoint, readyHandler(o.Probes()))
|
||||
|
|
|
@ -156,7 +156,7 @@ func RevocationError(err error) StatusError {
|
|||
}
|
||||
|
||||
func getTokenIDAndSubjectForRevocation(ctx context.Context, userinfoProvider UserinfoProvider, accessToken string) (string, string, bool) {
|
||||
ctx, span := tracer.Start(ctx, "getTokenIDAndSubjectFromRevocation")
|
||||
ctx, span := tracer.Start(ctx, "getTokenIDAndSubjectForRevocation")
|
||||
defer span.End()
|
||||
|
||||
tokenIDSubject, err := userinfoProvider.Crypto().Decrypt(accessToken)
|
||||
|
|
|
@ -69,7 +69,7 @@ func ParseUserinfoRequest(r *http.Request, decoder httphelper.Decoder) (string,
|
|||
}
|
||||
|
||||
func getAccessToken(r *http.Request) (string, error) {
|
||||
ctx, span := tracer.Start(r.Context(), "RefreshTokens")
|
||||
ctx, span := tracer.Start(r.Context(), "getAccessToken")
|
||||
r = r.WithContext(ctx)
|
||||
defer span.End()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue