Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set last_event_id only for error events #1767

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

sl0thentr0py
Copy link
Member

last_event_id only has a valid use case for cross-referencing errors on the end-user UI, updating it for transactions doesn't make sense and is consistent with python.

Fixes #1766

@@ -150,7 +150,7 @@ def capture_event(event, **options, &block)
configuration.log_debug(event.to_json_compatible)
end

@last_event_id = event&.event_id
@last_event_id = event&.event_id unless event.is_a?(Sentry::TransactionEvent)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sl0thentr0py this is the reason I want to do the inheritance-removal refactor. they are basically 2 types of events but yet they're both Sentry::Event.

Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a changelog entry for this? thx

@st0012 st0012 added this to In progress in 5.x via automation Mar 19, 2022
@st0012 st0012 added this to the 5.3.0 milestone Mar 19, 2022
@sl0thentr0py sl0thentr0py merged commit 9ed47c9 into master Mar 21, 2022
5.x automation moved this from In progress to Done Mar 21, 2022
@sl0thentr0py sl0thentr0py deleted the neel/fix-last-event-id branch March 21, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
5.x
Done
Development

Successfully merging this pull request may close these issues.

last_event_id references transaction event
2 participants