Issue
Need to easily control whether a project sends transactions or profiles (Performance Units) to Sentry.
Applies to
Resolution
It is only possible to disable performance monitoring from the SDK initialization options, it is not possible to do this from the organization settings or project settings views in-app.
How to Enable / Disable by Project:
For most SDKs tracing is enabled by default, you will need to check your specific SDK for the option to enable tracing and set to enable/disable tracing. Each SDK/Platform will specific options, but they usually consist of:
- removing traces sample rate options from the SDK initialisation.
- removing tracing integrations from the SDK initialisation.
- removing profile integrations from the SDK initialisation.
You can also look for the "Set Up Tracing" documentation for the SDK you are using and remove the options mentioned in that page.
React Native - Example:
- By default enableAutoPerformanceTracing: true which you can view in our source code here. To disable tracing you'd want to set enableAutoPerformanceTracing: false