Skip to content

update EnvironmentMappingGetter to ignore non-normalized environment variable names#83

Merged
ArielDemarco merged 1 commit into
open-telemetry:mainfrom
pellared:env-prop-updt
Jun 11, 2026
Merged

update EnvironmentMappingGetter to ignore non-normalized environment variable names#83
ArielDemarco merged 1 commit into
open-telemetry:mainfrom
pellared:env-prop-updt

Conversation

@pellared

Copy link
Copy Markdown
Member

@ArielDemarco
ArielDemarco merged commit 4f85f2a into open-telemetry:main Jun 11, 2026
22 checks passed
cijothomas pushed a commit to cijothomas/opentelemetry-specification that referenced this pull request Jun 12, 2026
…etry#5144)

Fixes
open-telemetry#5143

Prototypes: 
- open-telemetry/opentelemetry-go-contrib#9112
- open-telemetry/opentelemetry-cpp#4141
- open-telemetry/opentelemetry-java#8474
- open-telemetry/opentelemetry-js#6774
- open-telemetry/opentelemetry-python#5289
- open-telemetry/opentelemetry-swift-core#83

### Rationale

The previous wording required environment variable carriers to normalize
every key present in the carrier before matching a requested propagation
key.

This PR removes that requirement for two reasons:

- **Efficiency**: extraction should not require reading every
environment variable
- **Determinism**: if multiple environment variable names normalize to
the same key, selecting one is ambiguous and implementation-dependent.

Instead, carriers normalize the key requested by the propagator and read
only the corresponding normalized environment variable name. `Keys`
similarly returns only environment variable names that are already
normalized.

This keeps injection behavior unchanged while making extraction
predictable and avoiding unnecessary environment enumeration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants