Skip to content

What's the best way to provide extra_context for all Faraday::Error::ClientError? #814

Closed
@dblock

Description

@dblock

Coming from artsy/doppler#136. Somewhere a Rails controller throws a Faraday::Error::ClientError. That gets logged with a generic to_s like "The server returned 400". We want the body of that response in Sentry.

What's the best way to accomplish that (customize what gets reported per type of StandardError) generically in a Rails app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions