Disable Firebase Performance Monitoring

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 all automatic (out-of-the-box) monitoring

    • performance.dataCollectionEnabled — controls logging for custom code traces