@capgo/capacitor-firebase-performance
Capacitor plugin for Firebase Performance Monitoring.
Overview
Section titled “Overview”Capacitor plugin for Firebase Performance Monitoring.
Core Capabilities
Section titled “Core Capabilities”startTrace- Starts a trace.stopTrace- Stops a trace.incrementMetric- Atomically increments the metric with the given name for the selected trace by theincrementByvalue.setEnabled- Enables or disables performance monitoring. Will be applied with the next start of the app.
Public API
Section titled “Public API”| Method | Description |
|---|---|
startTrace | Starts a trace. |
stopTrace | Stops a trace. |
incrementMetric | Atomically increments the metric with the given name for the selected trace by the incrementBy value. |
setEnabled | Enables or disables performance monitoring. Will be applied with the next start of the app. |
isEnabled | Determines whether performance monitoring is enabled or disabled. |
putAttribute | Sets a custom attribute of a trace to a given value. |
getAttribute | Returns the value of a custom attribute of a trace. |
getAttributes | Gets the all the custom attributes of a trace with their values. |
removeAttribute | Removes a custom attribute from a trace given its name. |
putMetric | Sets the value of a custom metric. |
getMetric | Get the value of a custom metric by name. |
record | Records a trace given its name and options. |
getPluginVersion | Get the version of this plugin. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-firebase.