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

[exporter/datadog] Deprecate automatic environment variable detection #8397

Merged
merged 4 commits into from
Mar 15, 2022

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Mar 14, 2022

Description:

Deprecate automatic environment variable detection, targeting removal at v0.50.

Link to tracking Issue: #8396

Testing: There is no easy way to add unit tests for this, so I manually tested this by

  • Passing settings through environment variables, without explicitly declaring them. The warning shows up.
  • Passing settings through environment variables, but explicitly declaring them on the YAML. The warning does not show up.

Documentation: Environment variable auto-detection has been marked as deprecated in the documentation.

I can't really do this with the full struct without introducing public API
that will have to be deleted later. Since we don't plan to add more environment
variables, I think this way of doing the test is also okay.
@mx-psi mx-psi marked this pull request as ready for review March 14, 2022 14:01
@mx-psi mx-psi requested review from a team and bogdandrutu March 14, 2022 14:01
Copy link
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

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

LGTM!

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Mar 15, 2022
@jpkrohling jpkrohling merged commit 3bbf65b into open-telemetry:main Mar 15, 2022
@mx-psi mx-psi deleted the mx-psi/deprecate-env-vars branch March 15, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants