Span.fromContext(Context.current()).getSpanContext() return PropagatedSpan.INVALID #7728
-
|
After upgrading our embedded extensions to version 1.22.0 of the agent, the instrumentation broke and span is consistently invalid. Please, I need help figuring out why the api is returning PropagatedSpan.INVALID when called. Additional Details:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You could enable debug logging with |
Beta Was this translation helpful? Give feedback.
-
|
I was able to solve the problem. By using similar configuration as is found here and ensuring that any dependency on OTEL is I believe the root cause was the project was using the |
Beta Was this translation helpful? Give feedback.
I was able to solve the problem. By using similar configuration as is found here and ensuring that any dependency on OTEL is
compileOnly. This ensures thatbootstrapclass loader and theagentclass loader don't end up loading the same exact class. I also refactored the project so it uses same structure as the one linked.I believe the root cause was the project was using the
buildSrcapproach to repackage the jar.