Description
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.8
OS
Windows
SDK Version
4.9.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
Initialize Sentry using:
SentrySdk.Init(o => {
o.Dsn = "...";
o.SampleRate = 0.2f;
});
Then capture multiple feedback items, as per the documentation:
for (int i = 0; i < 6; i++) {
var eventId = SentrySdk.CaptureMessage("An event that will receive user feedback.");
SentrySdk.CaptureUserFeedback(eventId, "[email protected]", $"Test {i}", "The User");
}
(You can also do these manually multiple times instead of in a for loop, which is what we actually tested.)
Expected Result
We would expect all points of feedback to not be subject to the sample rate, as described here.
Actual Result
We are only seeing some of the feedback points come through. (And one duplicate one w/o a linked issue in the below screenshot, strangely enough.)
As a workaround, we tested re-initializing the Sentry SDK with a sampling rate of 100% prior to users submitting feedback, which works. This is not an ideal scenario, so I hope we can see this fixed.
Metadata
Metadata
Assignees
Type
Projects
Status
Done
Status
No status