-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
sentry-tracing: SentryLayer
ignores event_filter
if event_mapper
is set
#630
Comments
Yes, this is pretty much intentional. The sentry-rust/sentry-tracing/src/layer.rs Lines 136 to 138 in 3e7eec2
Though I admit the docs might not fully reflect this. |
Thank you for your swift response! I appreciate it, really. I believe this behavior is part of stable API and guaranteed to stay the same in the foreseeable future. Is this correct? If this is the case, I could submit a PR to document this explicitly. |
Yes, we wouldn’t want to change this behavior suddenly. PRs to improve docs are always appreciated ❤️ |
Environment
Linux x86_64
Steps to Reproduce
SentryLayer
with bothevent_filter
andevent_mapper
set.event_filter
ignores tracing events belowLevel::ERROR
.event_mapper
always returnsEventMapping::Event(..)
.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.The text was updated successfully, but these errors were encountered: