feat(analytics): expand DataDog RUM integration and align with iOS parity (#4970)

This commit is contained in:
James Rich 2026-04-01 15:27:28 -05:00 committed by GitHub
parent e249461e3c
commit 0167063497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 109 additions and 34 deletions

View file

@ -32,6 +32,26 @@ interface PlatformAnalytics {
*/
fun setDeviceAttributes(firmwareVersion: String, model: String)
/**
* Tracks a successful device connection as a custom RUM action, aligned with the Meshtastic-Apple DataDog
* integration for cross-platform analytics comparison.
*
* @param firmwareVersion The firmware version of the connected device (major.minor).
* @param transportType The transport used for the connection (e.g., "BLE", "TCP", "USB").
* @param hardwareModel The hardware model name of the connected device.
* @param nodes The total number of nodes in the mesh network.
* @param connectionRestored True if this connection was restored from device sleep rather than a fresh connect.
*/
fun trackConnect(
firmwareVersion: String?,
transportType: String?,
hardwareModel: String?,
nodes: Int,
connectionRestored: Boolean,
) {
// Default no-op for platforms that don't support RUM (fdroid, desktop)
}
/**
* Indicates whether platform-specific services (like Google Play Services or Datadog) are available and
* initialized.