The HTTP client instrumentation in ScoutApm::Instruments::HTTP is incompatible with http gem v6.0+, which changed HTTP::Client#request from positional arguments to keyword arguments.
Error
ArgumentError: wrong number of arguments (given 3, expected 2)
Root Cause
Both the prepend and alias instrumentation paths in lib/scout_apm/instruments/http.rb pass opts as a third positional argument to HTTP::Client#request. In http v5, the method accepted (verb, uri, opts = {}). In v6, the signature changed to (verb, uri, **opts) - keyword arguments only - so the third positional argument raises an ArgumentError.
The HTTP client instrumentation in
ScoutApm::Instruments::HTTPis incompatible with http gem v6.0+, which changedHTTP::Client#requestfrom positional arguments to keyword arguments.Error
Root Cause
Both the prepend and alias instrumentation paths in
lib/scout_apm/instruments/http.rbpass opts as a third positional argument toHTTP::Client#request. In http v5, the method accepted(verb, uri, opts = {}). In v6, the signature changed to(verb, uri, **opts)- keyword arguments only - so the third positional argument raises an ArgumentError.