-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description --- Resolves #1186 Add new telemetry service which receives events and immediately sends them. example event sent: ```json { "app_id": "1b%i31CBnblWxHYxSanG", "cpu_name": "11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz", "created_at": { "nanos_since_epoch": 439482034, "secs_since_epoch": 1734106140 }, "event_name": "checking-latest-version-mmproxy", "event_value": { "percentage": 10, "service": "mmproxy" }, "gpu_name": "Intel(R) Iris(R) Xe Graphics [0x9a49]", "os": "Linux", "user_id": "v3,FZNcifkHKvDUJ9Luwc4xBe5HiGHV,0.8.24,VWE2AdhnnMOqNDd7fcQnqVVEBAeee68KBM2+8K7iznY=", "version": "0.8.24" } ``` Motivation and Context --- This should be useful for tracking how many users are stuck during application setup. We saw some users being stuck at 30% with now feedback. This should help in debugging issues like that. How Has This Been Tested? --- Run application and watch for error message coming from telemetry service. If no error are present that means that events were sent correctly. Also check the telemetry dashboard to check if any messages are present on the server. To verify frontend command I created test button to invoke like this: ```Typescript const sendTelemetry = () => invoke('send_data_telemetry_service', { eventName: 'settings_opened', data: { service: 'frontend-test', percentage: 100 }, }); ``` And found those event present in the kafka dashboard: ```js { "app_id": "CX4h8%%G$xQ0hpnZSu@N", "cpu_name": "11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz", "created_at": { "nanos_since_epoch": 795656093, "secs_since_epoch": 1736248665 }, "event_name": "settings_opened", "event_value": { "percentage": 100, "service": "frontend-test" }, "gpu_name": "Intel(R) Iris(R) Xe Graphics [0x9a49]", "os": "Linux", "user_id": "v3,FZNcifkHKvDUJ9Luwc4xBe5HiGHV,0.8.40,VWE2AdhnnMOqNDd7fcQnqVVEBAeee68KBM2+8K7iznY", "version": "0.8.40" } ``` What process can a PR reviewer use to test or verify this change? --- Same as above. Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify --------- Co-authored-by: Brian Pearce <[email protected]>
- Loading branch information
1 parent
ce5298a
commit 8a61985
Showing
12 changed files
with
513 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.