Skip to content

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 <[email protected]>
@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