Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTEL_PYTHON_CONTEXT not working #3857

Open
WqyJh opened this issue Apr 17, 2024 · 0 comments
Open

OTEL_PYTHON_CONTEXT not working #3857

WqyJh opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@WqyJh
Copy link
Contributor

WqyJh commented Apr 17, 2024

Environment

  • Ubuntu 22.04
  • Python 3.10.12

Steps to reproduce
Set OTEL_PYTHON_CONTEXT=context.

What is the expected behavior?
_RUNTIME_CONTEXT be initiated as an Context instance.

What is the actual behavior?
_RUNTIME_CONTEXT failed to initialize.

Additional context

If OTEL_PYTHON_CONTEXT=contextvars_context, an ContextVarsRuntimeContext instance would be loaded, however, if OTEL_PYTHON_CONTEXT=context, an Context instance won't be loaded. This is caused by entry_points function, the return value contains only one EntryPoint named contextvars_context.

image

See #3763 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant