opentelemetry-rust
opentelemetry-rust copied to clipboard
Proposal: Add support for IPv6 Jaeger agent addresses
The Jaeger exporters all bind to INADDR_ANY (opentelemetry-jaeger/src/exporter/runtime.rs) which means that you are unable to connect to Jaeger agent collectors hosted on IPv6 address ranges, such as [::1]:6831.
It would be great to inspect the type of address provided as the destination address and bind to either 0.0.0.0:0 for IPv4 addresses and [::]:0 for IPv6 addresses. This is similar to what the opentelemetry-go library does for their socket binding: https://github.com/open-telemetry/opentelemetry-go/blob/main/exporters/jaeger/agent.go#L102
Sounds good, would you be able to contribute a PR?