Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
+ Coverage 8.65% 29.20% +20.55%
==========================================
Files 15 16 +1
Lines 393 493 +100
==========================================
+ Hits 34 144 +110
+ Misses 357 340 -17
- Partials 2 9 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9d3db9d to
3fd6a88
Compare
3fd6a88 to
89a2bfc
Compare
0267043 to
8d91393
Compare
|
I’ve looked deeper into this and tried to resolve some issues. |
2ba3ce2 to
bdad6cc
Compare
86ab7d0 to
bdfeff7
Compare
bdfeff7 to
c270ea4
Compare
|
@samber seems ready for review. |
This PR introduces a new FirstMatch routing strategy that sends log records to the first matching handler only, complementing the existing Fanout behavior which broadcasts to all matching handlers.
Motivation
In some logging scenarios, you want to route logs to exactly one handler based on priority rules, rather than broadcasting to all matching handlers. For example:
Without FirstMatch, all handlers would receive logs if their predicates match, leading to duplicate processing.