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

Update OtelTracer respect ENV variables #5

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

christroger
Copy link
Contributor

Hi 🙌

This is a fix, for OTEL_RESOURCE_ATTRIBUTES environment variable, as currently this env var will not be used which could lead to some confusion as other env vars work.

Background of this is, that in open-telemetry/opentelemetry-go#1689 support for merging this resource variable was added, but it was moved in open-telemetry/opentelemetry-go#2120 (comment) to the resource.New() function.

Through using resource.New() we do not need to add additional command-line arguments but can leverage the merging behaviour.

This function enables OTEL to scan for env variables and merge them with command line arguments
@jzelinskie jzelinskie merged commit 73f399c into jzelinskie:main Mar 14, 2022
@christroger christroger deleted the OTEL-env-variables branch March 15, 2022 09:16
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