Skip to content

Conversation

@this-Aditya
Copy link
Member

Application Metrics Collection and Storage

Three new topics have been introduced for collecting application metrics:

1. Plugin Status – Tracks the status of each plugin.
2. Application Network Connectivity – Monitors the application's network connectivity status.
3. Records Sent per Topic – Measures the number of records sent per topic.

Only the "number of records sent per topic" is collected in the background. However, the plugin status and network status are reported only when application metrics are explicitly initiated by the user.

The data for these two topics is stored in the database. To support this, Room Database has been integrated into the application. Room is a wrapper over SQLite for Android, offering robust database access and compile-time query verification, making it preferable over direct SQL usage.

The stored data is retained for a specific duration and has a defined limit. When either the retention time or storage limit is exceeded, the database is automatically cleared.

Summary of Application Metrics Storage Policies

  • Defines the interval for verifying that records older than application_metrics_retention_time are not present.
  • Specifies the number of records to retain in the buffer before adding them to the database. Batching records is done to improve performance.
  • Determines the retention period for application metrics. Older records are automatically deleted.
  • Sets a maximum limit on stored messages. When this limit is exceeded, older messages are removed.

@this-Aditya this-Aditya requested a review from mpgxvii February 19, 2025 10:53
@this-Aditya this-Aditya marked this pull request as draft February 28, 2025 09:51
@this-Aditya this-Aditya marked this pull request as ready for review March 3, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants