-
Notifications
You must be signed in to change notification settings - Fork 200
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
Problem to configure sampling override #3511
Comments
@pasomaal it should work if there is an attribute called "exception.type". |
@pasomaal can you try this instead: {
"connectionString": "someconnectionstring",
"role": {
"name": "SomeRoleName"
},
"instrumentation": {
"logging": {
"level": "WARN"
}
},
"sampling": {
"percentage": 30
},
"preview": {
"sampling": {
"overrides": [
{
"telemetryType": "exception",
"percentage": 100 // **this will keep Log exception to 100%. pls note that span exception is not supported because exception is present as a span event.**
}
]
}
}
} please let me know if works for you. |
Thanks for your quick answer. All exceptions are logged in the second configured application.
Kind Regards, Patrick |
@pasomaal
Hope this helps. Thank you for your patience. |
Helen, Thanks for your answer!
Kind Regards, Patrick |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Is your feature request related to a problem? Please describe.
How do I configure sampling to e.g. 30% and keep all underlying process exceptions logged.
I have a running process where requests are logged and sampled at 30%.
A background process is generating exceptions and these seem also to be sampled at 30%.
How do I keep all exceptions logged?
Describe the solution you would like
Keep all exceptions logged using a sampling override.
Additional context
I tried the below configuration, but doesn't seem to work.
The text was updated successfully, but these errors were encountered: