Describe the bug
The spy for http.rb gem isn't compatible with its 6.x releases.
Steps to reproduce
Try to make a request using http.rb gem, and get this error:
NoMethodError: undefined method '[]=' for an instance of HTTP::Request (NoMethodError)
trace_context.apply_headers { |key, value| req[key] = value }
Version 6.x removed [] and []= as a shorthand for headers on HTTP::Request object.
Expected behavior
No errors.
Environment
- OS:
- Ruby version:
- Framework and version:
- APM Server version:
- Agent version:
Additional context
Add any other context about the problem here.
-
Agent config options
Click to expand
replace this line with your agent config options
remember to mask any sensitive fields like tokens
Describe the bug
The spy for http.rb gem isn't compatible with its 6.x releases.
Steps to reproduce
Try to make a request using http.rb gem, and get this error:
Version 6.x removed
[]and[]=as a shorthand for headers onHTTP::Requestobject.Expected behavior
No errors.
Environment
Additional context
Add any other context about the problem here.
Agent config options
Click to expand