In the version 4.4.0, we added support for capturing net/http requests as span/breadcrumbs. This feature requires patching the class, which can be done in 2 different but conflicting ways: method aliasing and module prepending. Here's a great article from bearer explaining how these 2 approaches conflict with each other.
Fortunately, the community has been adopting the prepend approach for a while now + sentry-ruby requires Ruby 2.4+. So the chance of having the issue should be low.
How we're going to help you upgrade
With that being said, if you're reading this issue, chances are you're having the conflict inside your app. So here's our plan to help you upgrade:
- We'll see if it's possible to align your other dependencies toward the
prepend approach. Most of the gems that patch this library should have provided an option to switch the mode to prepend. For example, rack-mini-profiler and its prepend_net_http_patch option.
- If the above option is not viable to you, we'll decide whether which approach to take based on your feedback:
- Provide a way to
opt-out this patch.
- Provide an option to switch modes like some other gems do.
Update
The version 4.4.1 should solve the issue.
In the version
4.4.0, we added support for capturingnet/httprequests as span/breadcrumbs. This feature requires patching the class, which can be done in 2 different but conflicting ways: method aliasing and module prepending. Here's a great article from bearer explaining how these 2 approaches conflict with each other.Fortunately, the community has been adopting the
prependapproach for a while now +sentry-rubyrequires Ruby 2.4+. So the chance of having the issue should be low.How we're going to help you upgrade
With that being said, if you're reading this issue, chances are you're having the conflict inside your app. So here's our plan to help you upgrade:
prependapproach. Most of the gems that patch this library should have provided an option to switch the mode toprepend. For example,rack-mini-profilerand itsprepend_net_http_patchoption.opt-outthis patch.Update
The version
4.4.1should solve the issue.