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

[currencyservice] - use environment variables to configure tracer #259

Merged
merged 4 commits into from
Aug 6, 2022

Conversation

puckpuck
Copy link
Contributor

@puckpuck puckpuck commented Aug 4, 2022

Changes

The currencyservice was using command line arguments to set the OTLP endpoint and resource attributes. This was done by parsing the command line options, and rebuilding the equivalent objects in code when initializing the tracer. The command line options were set using OTEL_ environment variables, which may have led to some confusion on how things were being initialized.

This PR undoes much of that logic and lets the OpenTelemetry C++ SDK configure the OTLP endpoint and resource attributes using the OTEL_ environment variables.

@puckpuck puckpuck requested a review from a team August 4, 2022 21:47
Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the change

@cartersocha cartersocha merged commit 2fe2b52 into open-telemetry:main Aug 6, 2022
@puckpuck puckpuck deleted the currency-env-vars branch August 9, 2022 03:27
jmichalak9 pushed a commit to jmichalak9/opentelemetry-demo that referenced this pull request Mar 22, 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.

3 participants