-
Notifications
You must be signed in to change notification settings - Fork 506
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
[Bug]: constructing a tonic builder defaults to connect to 4318? #1509
Comments
Right, it's this code here: https://docs.rs/opentelemetry-otlp/0.14.0/src/opentelemetry_otlp/exporter/mod.rs.html#119
I'm not great at Rust API design (yet? fingers crossed, heh), but it seems like ExportConfig should maybe not have a Default impl and should require a |
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md As per the spec, gRPC should use 4317, and http/protobuf should use 4318.. So when changing the transport, it is expected that it'll change the port as well. Not sure if this has anything to do with OTel Rust in particular - this should be same across all languages implementing OTel spec. |
But I'm using GRPC* and it's defaulting to 4318... |
Like, the code defines the correct default port for GRPC, and then proceeds to ignore it because I happen to have the |
oh.. that I believe could be a bug! |
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509 Signed-off-by: Harold Dost <h.dost@criteo.com>
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509 Signed-off-by: Harold Dost <h.dost@criteo.com>
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509 Signed-off-by: Harold Dost <h.dost@criteo.com>
Current behavior uses http-proto port even when there's no desire to use it. Relates open-telemetry#1509 Signed-off-by: Harold Dost <h.dost@criteo.com>
Fixed by #1556 |
What happened?
I thought I saw the issue in the code last night, but now I'm not convinced I quite grok the issue, but here's what I'm seeing:
As part of my telemetry pipeline creation, I do this:
However, this tries to connect to 4318 by default, rather than 4317 as I'd expect.
Right now I have to do this:
but it doesn't feel right that I need to?
API Version
SDK Version
(see above)
What Exporters are you seeing the problem on?
OTLP
Relevant log output
The text was updated successfully, but these errors were encountered: