Skip to content

feat(propagator-env-carrier): empty name normalization#6827

Merged
trentm merged 3 commits into
open-telemetry:mainfrom
pellared:empty-env-var
Jun 18, 2026
Merged

feat(propagator-env-carrier): empty name normalization#6827
trentm merged 3 commits into
open-telemetry:mainfrom
pellared:empty-env-var

Conversation

@pellared

Copy link
Copy Markdown
Member

@pellared
pellared marked this pull request as ready for review June 18, 2026 19:38
@pellared
pellared requested a review from a team as a code owner June 18, 2026 19:38
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.93%. Comparing base (041b5f4) to head (b4711e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6827   +/-   ##
=======================================
  Coverage   94.93%   94.93%           
=======================================
  Files         383      383           
  Lines       13007    13009    +2     
  Branches     2974     2975    +1     
=======================================
+ Hits        12348    12350    +2     
  Misses        659      659           
Files with missing lines Coverage Δ
...elemetry-propagator-env-carrier/src/env-carrier.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trentm
trentm added this pull request to the merge queue Jun 18, 2026
Merged via the queue into open-telemetry:main with commit 0b91bf1 Jun 18, 2026
31 checks passed
@pellared
pellared deleted the empty-env-var branch June 19, 2026 05:22
@pellared

Copy link
Copy Markdown
Member Author

@trentm, can you also review open-telemetry/opentelemetry-specification#5163 given you approved and merged this PR?

pellared added a commit to pellared/opentelemetry-specification that referenced this pull request Jun 22, 2026
…try#5163)

Issue discovered by @MrAlias in
open-telemetry/opentelemetry-go-contrib#9112 (comment)

Also see
open-telemetry#5163 (comment)

Prototypes: 
-
open-telemetry/opentelemetry-go-contrib@0fedf62
- open-telemetry/opentelemetry-dotnet#7424
- open-telemetry/opentelemetry-swift-core#86
- open-telemetry/opentelemetry-python#5328
- open-telemetry/opentelemetry-js#6827
- open-telemetry/opentelemetry-java#8481

For values to be fully portable across POSIX-compliant systems and shell
utilities, the standard dictates that environment variable names must
consist solely of uppercase letters, digits, and underscores (_), and
must not begin with a digit. While some individual implementations might
tolerate unusual characters, an empty string lacks any valid characters
entirely and cannot act as a recognizable identifier.

I verified that on Ubuntu it is not possible to set a env var with an
empty name.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@otelbot-js otelbot-js Bot mentioned this pull request Jul 2, 2026
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