Skip to content

Stack level to deep error after upgrading to 4.4.0 #1427

@st0012

Description

@st0012

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions