open-telemetry / opentelemetry-rust

The Rust OpenTelemetry implementation
https://opentelemetry.io
Apache License 2.0
1.72k stars 386 forks source link

[Bug]: HTTP status client error (404 Not Found) after upgrade to 0.23 #1866

Open frederikhors opened 1 month ago

frederikhors commented 1 month ago

What happened?

If I upgrade these:

- opentelemetry = { version = "0.22.0", default-features = false, features = [
+ opentelemetry = { version = "0.23.0", default-features = false, features = [
    "trace",
] }
- opentelemetry-otlp = { version = "0.15.0", default-features = false, features = [
+ opentelemetry-otlp = { version = "0.16.0", default-features = false, features = [
    "http-proto",
    "reqwest-client",
    "reqwest-rustls",
] }
- opentelemetry_sdk = { version = "0.22", default-features = false, features = [
+ opentelemetry_sdk = { version = "0.23", default-features = false, features = [
    "rt-tokio",
] }
- tracing-opentelemetry = { version = "0.23.0", default-features = false }
+ tracing-opentelemetry = { version = "0.24.0", default-features = false }

I get the error:

OpenTelemetry trace error occurred. HTTP status client error (404 Not Found) for url (https://otlp.uptrace.dev/).

These are the only changes in the code.

Why the error?

API Version

0.23

SDK Version

0.23

What Exporter(s) are you seeing the problem on?

OTLP

Relevant log output

No response

frederikhors commented 1 month ago

I opened this too: https://github.com/uptrace/uptrace/issues/385.

cijothomas commented 1 month ago

https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/CHANGELOG.md#fixed Default grpc endpoint will not have path based on signal(e.g /v1/traces) https://github.com/open-telemetry/opentelemetry-rust/pull/1706

Maybe the above ? (Unfortunately, the changelog is not very clear about the impact....)