AddCustomTokenRequestValidator OpenTelemetry Invalid Parent Span #110
Unanswered
mkchmiel
asked this question in
IdentityServer
Replies: 1 comment
-
Can you please provide some more context? Is it inside your custom token request validator that the parent activity is lost? Is there a parent activity you've seen in our source code that should be there? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BFF version
7.0.8
.NET version
8.0.405
Description
When using opentelemetry along side jaeger, we are seeing the parent span get dropped and it doesnt matter whether or not we include all of the Duende instrumentation.
An example of the issues is the following:
"invalid parent span IDs=b1986611a6cbc7f2; skipping clock skew adjustment"
Due to the above issue using code such as
Activity.Current?.AddTag("ApiKey", request.ApiKey);
will not do anything because the parent is lost and the data along with it.
Reproduction steps
Setup a standard Duende Identity server setup where we use AddCustomTokenRequestValidator.
Expected behavior
The parent span is not missing or dropped. When all works well using code like Activity.Current?.AddTag can aid in debugging issues.
Logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions