Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(exporter-*-otlp-*)!: remove some environment variable code from browser exporters #4886

Conversation

pichlermarc
Copy link
Member

@pichlermarc pichlermarc commented Jul 30, 2024

Which problem is this PR solving?

We do have some code and lots of tests for using environment variables in the browser exporters. The only way to use those (AFAIK) is via a process polyfill or by setting things on _globalThis, which from my understanding is not something anyone is using over configuring the exporter via the constructor. This PR removes some of the code associated with environment variables from the browser exporters.

This came up while working on a follow up to #4743 (implementing the same changes from that PR for the browser exporters).

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Remaining tests

@pichlermarc pichlermarc changed the title feat(exporter-*-otlp-*)!: remove environment variable code from browser feat(exporter-*-otlp-*)!: remove environment variable code from browser exporters Jul 30, 2024
@pichlermarc pichlermarc marked this pull request as ready for review July 30, 2024 12:25
@pichlermarc pichlermarc requested a review from a team July 30, 2024 12:25
@pichlermarc pichlermarc changed the title feat(exporter-*-otlp-*)!: remove environment variable code from browser exporters feat(exporter-*-otlp-*)!: remove some environment variable code from browser exporters Jul 31, 2024
@pichlermarc pichlermarc added this pull request to the merge queue Jul 31, 2024
Merged via the queue into open-telemetry:main with commit 30a46ae Jul 31, 2024
19 checks passed
@pichlermarc pichlermarc deleted the feat/remove-nonsensical-browser-getenv branch July 31, 2024 08:37
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this pull request Sep 14, 2024
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