-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Exporter signal-specific environment variables interpretation #2338
Comments
|
Same results in |
I believe the URL path is being overridden here:
This should check if the signal specific endpoint was defined, however the existing patterns seem to evaluate environment variables and set defaults in a different function:
@open-telemetry/go-maintainers Would it be best to separate the protocol, host and port from the path here and update the URL path like it does with Secure/Insecure? |
Looks like the HTTP client will always append a suffix:
And the gRPC client will never:
If we update the |
Description
Spec v1.8.0 clarified that per-signal environment variables for HTTP endpoints must be interpreted as full/complete URLs.
otlptracehttp@v1.2.0
(incorrectly) appends/v1/traces
to the URL provided inOTEL_EXPORTER_OTLP_TRACES_ENDPOINT
.Environment
Steps To Reproduce
Expected behavior
I expected
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
to "be used as-is without any modification".That is, I expected the
OTEL_EXPORTER_OTLP_ENDPOINT
env var to be interpreted differently than theOTEL_EXPORTER_OTLP_TRACES_ENDPOINT
env var.The text was updated successfully, but these errors were encountered: