Skip to content

sentry-tracing: SentryLayer ignores event_filter if event_mapper is set #630

Open
@jinohkang-theori

Description

@jinohkang-theori

Environment

Linux x86_64

Steps to Reproduce

  1. Build SentryLayer with both event_filter and event_mapper set.
    • event_filter ignores tracing events below Level::ERROR.
    • event_mapper always returns EventMapping::Event(..).
  2. Emit a tracing event with Level::WARN (warn!()).

Expected Result

The warn event is discarded by the filter; the Sentry instance does not receive any events.

Actual Result

The warn event is not discarded by the filter; the Sentry instance receives the mapped event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions