Open
Description
Creating this issue for further discussion.
If you do the following, the exception will be captured but the tag won't be used (because that scope is thrown away in an ensure).
Sentry.with_scope do |scope|
scope.set_tags(my_tag: "my value")
1 / 0
end
If you do the following, the exception will be captured and the tag will be visible.
Sentry.with_scope do |scope|
scope.set_tags(my_tag: "my value")
begin
1 / 0
rescue => e
Sentry.capture_exception(e)
end
end
Originally posted by @sl0thentr0py in getsentry/sentry-docs#5328 (comment)
Metadata
Metadata
Assignees
Type
Projects
Status
No status