Conversation
|
Thanks @Div95. We'll have to wait till this is added to the spec. |
Ok sure. Is it ok to leave this PR open till then? |
|
@Div95 I moved this to drafts. You can re-open this when it is ready for review. |
|
@owais @Div95 at long last, the spec PR merged (open-telemetry/opentelemetry-specification#4454) and the issue is closed (open-telemetry/opentelemetry-specification#740). Do you have time to revive this PR? Note that this may cross over with #4609 , which is linked from https://opentelemetry.io/docs/specs/otel/context/env-carriers/#approach-2-using-the-carriers-directly-through-setters-and-getters |
|
As #4609 as been merged and using a dedicated Propagator has been removed as an option to support env vars propagation, I suggest this is closed @open-telemetry/python-maintainers |
|
I asked Claude to review this PR and Claude suggests it be closed with this explanation:
To guard against a mistaken suggestion, Claude then independently re-verified this conclusion:
Claude evaluated this PR with high confidence that it can be closed. Claude has classified this PR as superseded — the feature shipped via a different, spec-aligned approach and the approach in this PR was removed from the spec. The intention of this comment is to make it easier for a human being to review this PR before making a decision. |
Pull request dashboard statusWaiting on the author · refreshed 2026-08-14 16:51 UTC Move out of draft to request review. Status above doesn't look right?
|
Description
Extended opentelemetry-python to develop a propagator that helps in inter-process propagation of trace/baggage details in a particular format (b3/w3c/any other) using environment dictionary as the carrier.
Using environment dictionary as the carrier will help to connect batch processes.
For example: The environment dictionary containing trace/baggage details can be passed to the next process
in the subprocess call, thereby propagating the trace/baggage details across processes.
The propagator has dependency on opentelemetry-api.
Relates to opentelemetry-specification issue #740
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
All the functions in the propagator have been tested using unittest library.
Following steps can be followed to run the tests:
cd opentelemetry-python/propagator/opentelemetry-propagator-envpip install -e .[test]For z-shell, use the command:
pip install -e ".[test]"python3 -m unittestThen you can uninstall the project by using the command:
pip uninstall opentelemetry-propagator-envyou could also run individual test files by using the command format:
python3 -m unittest tests.<test_file_name>.<test_file_class>Does This PR Require a Contrib Repo Change?
Answer the following question based on these examples of changes that would require a Contrib Repo Change:
The OTel specification has changed which prompted this PR to update the method interfaces of
opentelemetry-api/oropentelemetry-sdk/The method interfaces of
opentelemetry-instrumentation/have changedThe method interfaces of
test/utilhave changedScripts in
scripts/that were copied over to the Contrib repo have changedConfiguration files that were copied over to the Contrib repo have changed (when consistency between repositories is applicable) such as in
pyproject.tomlisort.cfg.flake8When a new
.github/CODEOWNERis addedMajor changes to project information, such as in:
README.mdCONTRIBUTING.mdYes. - Link to PR:
No.
Checklist: