feat(op): add opentelemetry to token endpoint

This commit is contained in:
Tim Möhlmann 2023-09-01 11:28:24 +03:00
parent 5ade1cd9de
commit 257b5e73b1
13 changed files with 107 additions and 1 deletions

View file

@ -196,6 +196,10 @@ func (r *deviceAccessTokenRequest) GetScopes() []string {
}
func DeviceAccessToken(w http.ResponseWriter, r *http.Request, exchanger Exchanger) {
ctx, span := tracer.Start(r.Context(), "DeviceAccessToken")
defer span.End()
r = r.WithContext(ctx)
if err := deviceAccessToken(w, r, exchanger); err != nil {
RequestError(w, r, err)
}