fix: Apply Enricher to User Feedback#4883
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4883 +/- ##
==========================================
+ Coverage 73.85% 73.87% +0.01%
==========================================
Files 483 483
Lines 17577 17578 +1
Branches 3464 3464
==========================================
+ Hits 12982 12985 +3
+ Misses 3741 3740 -1
+ Partials 854 853 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // Evaluate and copy before invoking the callback | ||
| scope.Evaluate(); | ||
| scope.Apply(evt); | ||
| _enricher.Apply(evt); |
There was a problem hiding this comment.
question: more than environment and release
More than environment and release are applied ... is this intended?
There was a problem hiding this comment.
It looks like we already do this here as well...
sentry-dotnet/src/Sentry/SentryClient.cs
Lines 177 to 180 in fed5244
Maybe we refactor it into a tiny little method (which could conceivably be reused in CaptureCheckIn, CaptureSession or some other future CaptureFoo method)? That way we'd ensure consistency across envelope items.
|
btw: this will need to be updated from |
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Internal Changes 🔧Deps
Test
Other
Other
🤖 This preview updates automatically when you update the PR. |
Co-authored-by: Stefan Pölz <38893694+Flash0ver@users.noreply.github.com>
Resolves getsentry/sentry-unity#2510
Without the enricher, User Feedback is lacking
environmentandrelease.