Replies: 2 comments 3 replies
-
@mrproliu Could you check this? |
Beta Was this translation helpful? Give feedback.
3 replies
-
From my understanding, the context could exit automatically once all spans are closed. |
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
-
If multiple HTTP requests share the same goroutine, will the previous ctx be obtained?
for example:
First request: Unsampled
GET /hello (entrySpan) (NoopSpan)
|
GET /h1 (exitSpan) (NoopSpan)
Second request:
There may be the same goroutine, and the createEntrySpan() -> t.createNoop() -> getTracingContext() method retrieves the NoopSpan stored in the first request.
Currently, the tracing.CleanContext() call is added to the afterInvoke method in the gin plugin.
Is there any problem with doing this? Why do you need to call this method explicitly?
Beta Was this translation helpful? Give feedback.
All reactions