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

[chore] Update Instrumentation example with python env var #1330

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

TylerHelmuth
Copy link
Member

@TylerHelmuth TylerHelmuth commented Dec 15, 2022

Related to #924

Updates the README's Instrumentation object to explicitly set python's OTEL_EXPORTER_OTLP_ENDPOINT value to 4318.

If we want we can also update the python injection to update any existing OTEL_EXPORTER_OTLP_ENDPOINT value to be 4318 so that this distinction isn't necessary, but I think that change needs some scrutiny to make sure users can still configure anything they want with confidence that we aren't messing with it.

@TylerHelmuth TylerHelmuth requested a review from a team December 15, 2022 18:36
@@ -196,6 +196,10 @@ spec:
sampler:
type: parentbased_traceidratio
argument: "0.25"
python:
env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
Copy link
Member

Choose a reason for hiding this comment

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

I think this deserves a comment (for us but as well for the users) to explain why this needs to be overridden.

There are as well other references in the code related to this issue:

# We don't use the distro[otlp] option which automatically includes exporters since gRPC is not appropriate for

// Set OTEL_TRACES_EXPORTER to HTTP exporter if not set by user because it is what our autoinstrumentation supports.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a comment

@pavolloffay pavolloffay merged commit ba24a19 into open-telemetry:main Jan 9, 2023
@TylerHelmuth TylerHelmuth deleted the update-python-docs branch January 9, 2023 19:24
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…metry#1330)

* Update Instrumentation example with python env var

* Add comment
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