Skip to content

Commit

Permalink
Remove /v1/traces from OTEL_EXPORTER_OTLP_ENDPOINT
Browse files Browse the repository at this point in the history
`OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"` did not work as expected.

```
E, [2023-12-01T20:15:29.518443 #15315] ERROR -- : OpenTelemetry error: OTLP exporter received http.code=404 for uri: '/v1/v1/traces'
E, [2023-12-01T20:15:29.518806 #15315] ERROR -- : OpenTelemetry error: Unable to export 1 spans
```

It works correctly when removing "/v1/traces" from the endpoint.
  • Loading branch information
mizukmb committed Dec 1, 2023
1 parent d95c457 commit 951fd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/instrumentation/ruby/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ can change the endpoint by setting the `OTEL_EXPORTER_OTLP_ENDPOINT`
accordingly:

```sh
env OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces" rails server -p 8080
env OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" rails server -p 8080
```

To try out the OTLP exporter quickly and see your traces visualized at the
Expand Down

0 comments on commit 951fd96

Please sign in to comment.