Hi there,
I think you want to disable to browser side error tracking of this plugin but want to keep the server side error tracking?
This is done by removing the following 2 constants from your wp-config.php file: WP_SENTRY_PUBLIC_DSN and/or WP_SENTRY_BROWSER_DSN (don’t worry if you have only 1).
If that’s not what you want you will have to explain a bit more what you want to achieve!?
I want to track error from js and PHP or server-side too, but when I put tracking, it automatically set variable environment sent in variable ‘wp_sentry’, I just want to modify inside that object and remove information about WordPress and version WordPress, it’s okay if tracker error set user or language but I don’t want put my WordPress information. so I need to remove the WordPress property and version value in that object, can I?
Ah sorry I misunderstood, in that case you can use this filter to achieve that:
add_filter( 'wp_sentry_public_context', function ( array $context ): array {
unset( $context['tags']['wordpress'] );
return $context;
} );
-
This reply was modified 5 years, 6 months ago by
stayallive. Reason: Fix formatting
I have not heard back from you for almost 3 months so I’m going to close this support topic and assume my answer helped you. Please open it back up if that’s not the case so we can continue the conversation!