open-telemetry / open-telemetry/opentelemetry-python

API sets tracecontext, baggage as default global propagators

Open
#2,463 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2.6k
Forks
1k
Avg merge
4d 15h
Merged PRs (30d)
19

Description

https://github.com/open-telemetry/opentelemetry-python/blob/ec3053efd835d1776112447808712ba52f9c70ad/opentelemetry-api/src/opentelemetry/propagate/__init__.py#L124-L146

This behavior is in direct conflict with the API specification:

The OpenTelemetry API MUST use no-op propagators unless explicitly configured otherwise.

I think the SDK could do that, but not the API.

Side note: I find such logic in init violating the style guide: https://google.github.io/styleguide/pyguide.html#25-global-variables

Origin: Found by @Aneurysm9 when discussing https://github.com/open-telemetry/opentelemetry-go/issues/2611

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read opentelemetry-api/src/opentelemetry/propagate/init.py at lines 124-146, then compare its global-propagator behavior with the linked API specification. The change is complete when the API uses no-op propagators unless explicitly configured, without shifting SDK behavior into the API.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.