How to enable sample_rate for error logging #202
-
As per the docs, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Best way currently is: https://github.com/stayallive/wp-sentry?tab=readme-ov-file#wp_sentry_options This fires a little on the late side maybe depending on where your errors might occur. Maybe filtering is a better way to prevent many errors, or can you share a bit more about your use case? I have personally never needed to sample for errors, but happy to add the option if it makes sense 👍 |
Beta Was this translation helpful? Give feedback.
-
Thank you. This should work for me. My use case is that for the production environment, the same error is reported for all the traffic that consumes higher credits for the same error. So, I am planning to set a lower sample rate for production and 100% for all non-production environments. |
Beta Was this translation helpful? Give feedback.
Best way currently is: https://github.com/stayallive/wp-sentry?tab=readme-ov-file#wp_sentry_options
This fires a little on the late side maybe depending on where your errors might occur.
Maybe filtering is a better way to prevent many errors, or can you share a bit more about your use case? I have personally never needed to sample for errors, but happy to add the option if it makes sense 👍