opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

Proposal: Add support for IPv6 Jaeger agent addresses

Open DevinCarr opened this issue 3 years ago • 1 comments

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

DevinCarr avatar Jul 28 '22 22:07 DevinCarr

Sounds good, would you be able to contribute a PR?

djc avatar Jul 29 '22 09:07 djc