feat(log): support combined LogFilters and RecordMappings#914
Merged
Conversation
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #914 +/- ##
==========================================
+ Coverage 73.46% 73.50% +0.03%
==========================================
Files 64 64
Lines 7518 7533 +15
==========================================
+ Hits 5523 5537 +14
- Misses 1995 1996 +1 |
Member
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Looks good in principle, but I have a suggestion for simplifying the code
Swatinem
approved these changes
Oct 7, 2025
Contributor
Swatinem
left a comment
There was a problem hiding this comment.
One weird thing might be that with bitflags, you can combine Ignore with any of the others just fine, and the compiler won’t complain, even though it does not make sense.
But thats a minor papercut, not worth wasting time over.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for combining multiple
LogFilterswhen using our integration for thelogcrate.This way, it's possible to map a
logrecord to multiple items in Sentry, for example to both alogand anevent.This is required for #909.
There, we want to enable logs for records at or above INFO by default, in order to remove the double opt-in, while still sending breadcrumbs for them at the same time.
The changes are analogous with the ones we did for the
tracingintegration here: #847Issues
Close #908
Close RUST-111