You can control the logging of performance data either before initialization of the SDK or after its initialization.
Before initialization — You can make the initialization of the SDK conditional.
After initialization — You can use the following boolean flags to control whether your app sends performance data:
performance.instrumentationEnabled— controls logging for automatic traces and HTTP/S requests
performance.dataCollectionEnabled— controls logging for custom traces