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

Setup otlp from env #8645

Merged
merged 1 commit into from
Jun 7, 2023
Merged

Setup otlp from env #8645

merged 1 commit into from
Jun 7, 2023

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Jun 5, 2023

This allows standard OTLP env vars to be used for configuring tracing exporters.

Note: This does mean that, as written now, if no env var is set the trace exporter will try to connect to the default OTLP address (localhost:4318).
I've left this alone for now, but we could detect the OTLP vars ourselves and if not set don't configure the exporter.

ref: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options

This allows standard OTLP env vars to be used for configuring tracing
exporters.

Note: This does mean that, as written now, if no env var is set the
trace exporter will try to connect to the default OTLP address
(`localhost:4318`).
I've left this alone for now, but we could detect the OTLP vars
ourselves and if not set don't configure the exporter.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@samuelkarp samuelkarp merged commit d9ff323 into containerd:main Jun 7, 2023
@cpuguy83 cpuguy83 deleted the otlp_from_env branch June 7, 2023 12:56
@cpuguy83
Copy link
Member Author

As a note: this was backported to 1.7 in #9992

@thaJeztah thaJeztah added the cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch label Jun 18, 2024
@thaJeztah
Copy link
Member

I see it backported #8970 - does that one contain the same commit, or perhaps "same effect"?

@cpuguy83
Copy link
Member Author

Oh yes I grabbed the PR number from the commit, didn't think to check the content of the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants