Fix ContextManager.activeSpan() API usage error#3057
Conversation
kezhenxu94
left a comment
There was a problem hiding this comment.
Seems that there are more such usages, just to name a few:
I'd suggest fixing them all to defend future "potential bug" @zhaoyuguang
|
+1 for code scan. I also think, we should check all |
|
As I know, |
|
I think it cannot be deleted. Because it is useful sometimes. |
|
From the current failures, I am thinking about, is this right using |
|
Not NPE. It throws 'No active span.' exception when |
But the exception should not happen in agent, it costs too much. |
|
I entirely agree with you. Maybe I have a mistake. I mean we need |
|
I scanned the code and found only the two places, which are obvious usage errors. |
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
Fix ContextManager.activeSpan() API usage error #3055