-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Labels
Description
Description
Hello there! I got an instance of this error:
Failed to detach context
Traceback (most recent call last):
File "async_generator_example.py", line 11, in generate_items
yield i
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "opentelemetry/context/__init__.py", line 154, in detach
_RUNTIME_CONTEXT.detach(token)
File "opentelemetry/context/contextvars_context.py", line 50, in detach
self._current_context.reset(token)
ValueError: <Token var=<ContextVar name='current_context' default={} at 0x10afa3f60> at 0x10de034c0> was created in a different Context
And only after a bit of search I was able to find the documentation page about it.
What if the SDK added this link as a note to the Exception so that users can immediately see the reference and see if that applies?