opentrace activeSpan is null #2730
Unanswered
koustavchatterjee
asked this question in
Q&A
Replies: 1 comment
-
Not sure I understand: is it always null (AOP and manual instrumentation) or is it null only when manually instrumenting? |
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
-
I have an old application where I am trying to introduce opentrace. Instead of changing individual methods, I have added AOP/aspectJ to add span.But when i try to do
Span currentSpan = GlobalTracer.get().activeSpan()
in my original code, currentSpan is null.
I wonder Why ?
Here is my Code Aspect/AOP.
This is my old code where I am trying to get parent span. This below method is covered by AOP, I can see in debugger.
Beta Was this translation helpful? Give feedback.
All reactions