Skip to content

last_event_id references transaction event #1766

@entretechno-jeremiah

Description

@entretechno-jeremiah

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

  1. Initialize the client to sample every transaction (see below).
  2. Trigger an exception.
  3. 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

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions