You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OT library uses host from URI which fails to unwrap ipv6 brackets properly. Fix is to update this to use hostname instead, which will return a plain ipv6 address which is what Net::HTTP expects as the first argument.
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,
In my opinion Net::HTTP should tolerate this input, however it does not, even in the latest version of Ruby.
I will submit a PR in some time, thank you.
👋 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 keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.
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.
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: