-
Notifications
You must be signed in to change notification settings - Fork 247
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
opentelemetry-exporter-otlp: http_connection does not handle ipv6 host #1721
Comments
Hi @acarella1, thanks for reporting this bug! It seems like you have a good idea about what's needed to fix the problem. Would you be interested in submitting a PR? |
Hi @kaylareopelle, |
👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the |
Hello @kaylareopelle -- My name is Anthony Onah and I am an Outreachy Internship applicant. Can I be assigned this issue? If it's still open to being worked on. |
Hi @create2000 I'll be taking care of this one in some time, thank you |
The OT library uses
host
from URI which fails to unwrap ipv6 brackets properly. Fix is to update this to usehostname
instead, which will return a plain ipv6 address which is what Net::HTTP expects as the first argument.opentelemetry-ruby/exporter/otlp/lib/opentelemetry/exporter/otlp/exporter.rb
Line 107 in 75a4885
Share details about your runtime
Operating system details: FROM ruby:3.3.5-bookworm
RUBY_ENGINE: "ruby"
RUBY_VERSION: "3.3.5"
RUBY_DESCRIPTION: "ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [aarch64-linux]"
Share a simplified reproduction if possible
failure.rb
(hard error) getaddrinfo: Name or service not known (Socket::ResolutionError)
success.rb
(would be a success if something were on the port) Connection refused - connect(2) for "::1" port 4318 (Errno::ECONNREFUSED)
The text was updated successfully, but these errors were encountered: