I found this in opentelemetry/specification/trace/api:
If the language has support for implicitly propagated
Context
(see here), the API SHOULD also provide the following functionality:
- Get the currently active span from the implicit context. This is equivalent to getting the implicit context, then extracting the
Span
from the context.- Set the currently active span to the implicit context. This is equivalent to getting the implicit context, then inserting the
Span
to the context.
But I didn't find the method to get the currently active span in java or go. Is there any language that support this feature?
Any help will be appreciated!