feat(propagation): Support environment variable propagation#3587
Draft
9999years wants to merge 1 commit into
Draft
feat(propagation): Support environment variable propagation#35879999years wants to merge 1 commit into
9999years wants to merge 1 commit into
Conversation
Fixes: open-telemetry#3285 Adds `opentelemetry::propagation::environment::{EnvironmentExtractor, EnvironmentInjector}` to propagate context across process boundaries, gated on an unstable `experimental_propagation_env_carrier` feature flag, matching the Python/Java/Go SDKs. This can be used like: ```rust let context: Context = TraceContextPropagator::new().extract(&EnvironmentExtractor::new()); ```
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3587 +/- ##
======================================
Coverage 83.2% 83.2%
======================================
Files 130 131 +1
Lines 28232 28362 +130
======================================
+ Hits 23491 23612 +121
- Misses 4741 4750 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9999years
added a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 7, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
9999years
added a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 7, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
9999years
added a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 8, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 10, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 11, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 11, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 15, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 15, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
hdgarrood
pushed a commit
to MercuryTechnologies/buck2
that referenced
this pull request
Jul 15, 2026
This integrates the Mercury `opentelemetry-rust` fork with fixes from a couple PRs: See: - open-telemetry/opentelemetry-rust#3586 - open-telemetry/opentelemetry-rust#3587 Follow-up to Arian's review: #18 (review)
|
Thank you for your contribution! This PR has been automatically marked as stale because it has not had activity in the last 14 days. This may be due to a delay in review on our side or awaiting a response from you; either is fine, and we appreciate your patience. It will be closed in 14 days if no further activity occurs. Pushing a new commit or leaving a comment will remove the stale label and keep the PR open. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #3285
Changes
Adds
opentelemetry::propagation::environment::{EnvironmentExtractor, EnvironmentInjector}to propagate context across process boundaries, gated on an unstableexperimental_propagation_env_carrierfeature flag, matching the Python/Java/Go SDKs.This can be used like:
Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial, user-facing changes