unexpected trailing /
appended to endpoint configured via OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
#3269
Labels
bug
Something isn't working
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
spec-noncompliant
An existing feature incorrectly or incompletely implements the OTel spec. May or may not be a bug
What happened?
Steps to Reproduce
Using the example code from opentelemetry.io, I tried configuring an endpoint to send data to and was receiving 404's from my backend. After digging into it, the data was being sent to
https://endpoint/something/
instead ofhttps://endpoint/something
.Expected Result
Traces sent to
https://endpoint/something
Actual Result
Traces sent to
https://endpoint/something/
resulting in a 404Additional Details
Tracked the code that does the appending here:
opentelemetry-js/experimental/packages/otlp-exporter-base/src/util.ts
Lines 60 to 63 in 6111ae0
Note that this problem does not occur if i configure the endpoint in the code instead.
OpenTelemetry Setup Code
package.json
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: