Skip to content

Net::HTTP errors are sent upstream #1787

@sl0thentr0py

Description

@sl0thentr0py

Issue Description

Net::HTTP errors (here Net::OpenTimeout) don't derive from StandardError so they are not rescued in send_event and sent upstream as exceptions to Sentry.

Reproduction Steps

The following issue is from SentryEventJob with config.async but I think the problem holds generally.
https://sentry.io/share/issue/8e2e207b0fec41aaa2615f610a5437d6/

Expected Behavior

Exceptions in the SDK should be gracefully ignored.

Actual Behavior

They show up in Sentry.

Ruby Version

2.6.8p205

SDK Version

5.2.1

Integration and Its Version

No response

Sentry Config

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions