Issue Description
When I call Sentry.last_event_id to expose the event ID for the last exception to my event handler, it includes the ID of a transaction event.
Reproduction Steps
- Initialize the client to sample every transaction (see below).
- Trigger an exception.
- Call
Sentry.last_event_id.
Expected Behavior
Sentry.last_event_id should return the event ID for the exception.
Actual Behavior
Sentry.last_event_id returns the event ID for a transaction (Sentry::TransactionEvent).
Ruby Version
3.1.1
SDK Version
5.2.1
Integration and Its Version
sentry-rails v5.2.1 (Rails v7.0.2.3)
Sentry Config
Sentry.init do |config|
config.traces_sample_rate = 1.0
end
Issue Description
When I call
Sentry.last_event_idto expose the event ID for the last exception to my event handler, it includes the ID of a transaction event.Reproduction Steps
Sentry.last_event_id.Expected Behavior
Sentry.last_event_idshould return the event ID for the exception.Actual Behavior
Sentry.last_event_idreturns the event ID for a transaction (Sentry::TransactionEvent).Ruby Version
3.1.1
SDK Version
5.2.1
Integration and Its Version
sentry-rails v5.2.1 (Rails v7.0.2.3)
Sentry Config