Skip to content

How to access a handlers response? #651

@rreynier

Description

@rreynier

I am currently using the Raven handler so that my exceptions go into Sentry. Upon capturing an Exception in Sentry, Sentry will respond with an ID. Before my current attempt at implementing Monolog, I would capture the exception in Sentry and then my error page would show the Sentry ID (if the Sentry call succeeded). Ex. "An error has occured. Please contact support and reference #[sentry-id]." The Monolog Raven handler doesn't seem to expose the Sentry Id in any sort of way. In fact the response of captureException() isn't actually captured.

Do you have any suggestion on how to go about exposing this somehow? I could extend the Raven handler an possible just store some sort of GLOBAL but that seems awful dirty.

Would love to hear your thoughts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions