-
Notifications
You must be signed in to change notification settings - Fork 440
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
opentelemetry-otlp: '/v1/traces' is not appended to endpoint for http exporter #997
Comments
Thanks for reporting, would you be able to submit a PR to improve on this? |
Actually to be clear, while this was fixed, we've actually found it to have a significant bug 😭:
One simple approach here is to strip off the path from |
Make endpoint Uri construction less fragile by stripping out duplicate slashes. Fixes #997 The functionality to append the signal path to a user-supplied tracing endpoint is already in place. However, it does so in a way that is likely to break for any user who's passing the string value of a Uri or Url, which will have a trailing slash appended to them. This attempts to fix that issue. There were other possible changes discussed but ever implemented/merged in #1056. This PR attempts to keep it simple by just changing existing behavior to not break in a common use case.
The HTTP exporter doesn't add
/v1/traces
to the 'endpoint' specified in the config:opentelemetry-rust/opentelemetry-otlp/src/span.rs
Lines 404 to 419 in 592e77a
This seems like an oversight because this is done in other places:
opentelemetry-rust/opentelemetry-otlp/src/span.rs
Lines 319 to 328 in 592e77a
https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/src/metric.rs#L235-L245
The text was updated successfully, but these errors were encountered: