Closed modosc closed 9 months ago
@modosc yep this makes sense to have, will add it when I have some time or feel free to PR!
@sl0thentr0py i opened https://github.com/getsentry/sentry-ruby/pull/2235 - i just copied the code/spec pattern from the existing tags:
implementation.
if i want to explicitly send an exception to
sentry
that would otherwise be ignored because ofSentry.configuration.excluded_exceptions
i can do this:however, as far as i can tell this isn't possible if i'm using the rails error reporting interface.
it would be useful to expose this there.
i think it could be achieved the same way
tags
are handled here:https://github.com/getsentry/sentry-ruby/blob/master/sentry-rails/lib/sentry/rails/error_subscriber.rb#L17C38-L20
so you could just provide a
hint
key incontext:
:and you could then pass it in via this (untested) implementation: