-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Filter out health check transactions #3317
Comments
So it looks like our docs are ahead of our implementation! I don't find anything related to |
Are there any options to filter them out? This is depleting my performance units within a few days, because I have multiple health endpoints. |
You should definitely be able to filter those. The automatically created transaction's name should be in the format |
Yes, the format is indeed I've noticed that even after dropping a transaction, still some tracing information is sent to Sentry. Does this count towards my performance units limit? |
With the transaction dropped we update the client report. You can see that here: sentry-dotnet/src/Sentry/SentryClient.cs Lines 172 to 178 in 7213a8c
This does not count towards your quota. |
Okay, I'll check if the filters are working once I have performance units again. |
Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
6.0.0
OS
Any (not platform specific)
SDK Version
4.4.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
/healthcheck/database
)Expected Result
According to the docs (https://docs.sentry.io/product/data-management-settings/filtering/#transactions-coming-from-health-check), the health check transaction should be filtered out.
Number of other things I've tried:
SetBeforeSendTransaction
andSetBeforeSend
. Tried to filter on Transaction Name/Tags.options.SetBeforeSendTransaction((sentryTransaction, _) => { return sentryTransaction.Name.Contains("healthcheck") ? null : sentryTransaction; });
TracesSampler
options.TracesSampler = samplingContext => { return samplingContext.TransactionContext.Name.Contains("healthcheck") ? 0 : 1; };
When I check the logs, it says the events/transactions are dropped, but I'm still receiving them in Sentry.
Actual Result
The health check is not filtered out.
The text was updated successfully, but these errors were encountered: