Skip to content

Conversation

weyert
Copy link
Contributor

@weyert weyert commented Apr 6, 2025

Which problem is this PR solving?

Updates the code to user the helper utilities to retrieve environment variable values

Fixes #5561

Short description of the changes

Used the getStringFromEnv-helper function instead of process.env

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

I have ran the relevant unit tests to verify the tests still pass as expected.

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

weyert added 2 commits April 6, 2025 15:24
Updates the code to user the helper utilities to retrieve environment variable values

fixes open-telemetry#5561

Signed-off-by: Weyert de Boer <[email protected]>
@weyert weyert requested a review from a team as a code owner April 6, 2025 14:26
Copy link

codecov bot commented Apr 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.06%. Comparing base (31640eb) to head (321a1be).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5594   +/-   ##
=======================================
  Coverage   95.06%   95.06%           
=======================================
  Files         307      307           
  Lines        8025     8025           
  Branches     1623     1623           
=======================================
  Hits         7629     7629           
  Misses        396      396           
Files with missing lines Coverage Δ
...e/src/configuration/otlp-http-env-configuration.ts 95.83% <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.

@david-luna david-luna changed the title refactor: use getStringFromEnv instead of process.env refactor(otlp-exporter-base): use getStringFromEnv instead of process.env Apr 7, 2025
Copy link
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A couple nits.

@david-luna
Copy link
Contributor

@weyert do you have time to address the changes proposed? I would be happy to merge this PR once done and the conflict is resolved.

@trentm trentm self-assigned this Jul 16, 2025
@dyladan
Copy link
Member

dyladan commented Jul 16, 2025

Please fix comments and conflicts and we can merge this :)

@trentm trentm added this pull request to the merge queue Aug 22, 2025
Merged via the queue into open-telemetry:main with commit 806e56b Aug 22, 2025
24 checks passed
Joozty pushed a commit to Joozty/opentelemetry-js that referenced this pull request Sep 9, 2025
…ess.env` (open-telemetry#5594)

Signed-off-by: Weyert de Boer <[email protected]>
Co-authored-by: David Luna <[email protected]>
Co-authored-by: Trent Mick <[email protected]>
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.

[contribfest] use new get*FromEnv() functions in OTLP HTTP exporter env var configuration

5 participants