-
Notifications
You must be signed in to change notification settings - Fork 888
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
Add OTEL_EXPORTER_JAEGER_PROTOCOL and improve description of other OTEL_EXPORTER_JAEGER_* env vars #2341
Conversation
Going to address @yurishkuro comments tomorrow |
Ready for another review round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: the formatting of this page makes Github diffs difficult to read. Perhaps we need to reformat it similar to #2345 (can be done in a separate, future PR).
| OTEL_EXPORTER_JAEGER_TIMEOUT | Maximum time the Jaeger exporter will wait for each batch export | 10s | | ||
| OTEL_EXPORTER_JAEGER_USER | Username to be used for HTTP basic authentication | | | ||
| OTEL_EXPORTER_JAEGER_PASSWORD | Password to be used for HTTP basic authentication | | | ||
| OTEL_EXPORTER_JAEGER_PROTOCOL | The transport protocol. Options MAY include [`http/thrift.binary`][jaeger_http], [`grpc`][jaeger_grpc], [`udp/thrift.compact`][jaeger_udp], [`udp/thrift.binary`][jaeger_udp] | `http/thrift.binary` [1] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this say MAY
? This is not a recommendation, it is a strict list. Should it say: MUST be one of ...
instead?.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken from https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md. The same wording is used in #2345
I would prefer to address it in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think MAY
is not the right word here and other similar places that you found, but I am fine if it is addressed in a future PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create issues for it once this PR is merged and assign it to myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressing this addition in a future PR could potentially lead to compatibility issues. Reviewers of the future PR may not know if this change was released and "upgrading" from an option to a requirement would be a backwards incompatible change. Or, even worse, this would be released prior to the follow on PR being merged. Given this section of the doc is marked stable, this seems like a valid concern.
Can we address the change from MAY
to MUST
for these changes in this PR instead? That way it will be a cohesive and complete change that is not copying prior errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @owais ;) |
…EL_EXPORTER_JAEGER_* env vars (open-telemetry#2341) * Standardize OTEL_EXPORTER_JAEGER_PROTOCOL * Update sdk-environment-variables.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Add udp/thrift.binary and reformat table * Update sdk-environment-variables.md Co-authored-by: Carlos Alberto Cortez <calberto.cortez@gmail.com>
Follow-up of #2333
Changes
Preview here
OTEL_EXPORTER_JAEGER_PROTOCOL
environment variable to select the protocol usedby the Jaeger exporter.
OTEL_EXPORTER_JAEGER_*
environment variables (e.g. when they are applicable - it also represents the current state of SDKs)Here are the following reasons for this change
OTEL_TRACES_EXPORTER=jaeger
(instead of supporting values likeOTEL_TRACES_EXPORTER=jaeger-udp
).OTEL_EXPORTER_OTLP_PROTOCOL
6832
as the default Agent port because it uses a different protocolRelated issues:
FYI (all SIG maintainers where I see that
OTEL_EXPORTER_JAEGER_ENDPOINT
is used) @open-telemetry/dotnet-maintainers @open-telemetry/dotnet-instrumentation-maintainers @open-telemetry/java-instrumentation-maintainers @open-telemetry/python-maintainers @open-telemetry/go-maintainers @open-telemetry/php-maintainers @open-telemetry/java-maintainers @open-telemetry/ruby-maintainers @open-telemetry/rust-maintainersAlternative
Instead of adding
OTEL_EXPORTER_JAEGER_PROTOCOL
we can specify more specific values forOTEL_TRACES_EXPORTER
likejaeger/http/thrift.binary
but this would be inconsistent with the OTLP exporter configuration.TODO in next PR