Capture JWT claims
#13938
Replies: 1 comment 2 replies
-
This won't work. Metric attributes aren't read from the span but rather from what is added to the span by our instrumentation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Case:
I want to extract a claim from the JWT token in the Authorization header from the http request and add it to
http.server.duration
.I found the header capture, but I don't want to capture the raw authorization header.
I had a look at
DemoServlet3Instrumentation
and came up with the following. However, the histogram construction seems closed for extension?Is this the correct way?
Beta Was this translation helpful? Give feedback.
All reactions