Differentiate enabled and disabled selected plugins in analytics

Summary: As we now allow selection of disabled plugins we need to track plugin usage a bit smarter. We'll add a new field "pluginEnabled" to the logged messages to indicate whether selected plugin is enabled or not.

Reviewed By: cekkaewnumchai

Differential Revision: D29455248

fbshipit-source-id: 32c79e0961653edc8f4cc89adecc2662b37cbd7b
This commit is contained in:
Anton Nikolaev
2021-06-29 13:00:18 -07:00
committed by Facebook GitHub Bot
parent 142859f0ed
commit 4ad7a70ee3
4 changed files with 36 additions and 28 deletions

View File

@@ -88,6 +88,7 @@ describe('info', () => {
"deviceType": "physical",
"os": "Android",
"plugin": "Network",
"pluginEnabled": true,
"pluginName": "flipper-plugin-network",
"pluginVersion": "0.78.0",
}
@@ -102,6 +103,7 @@ describe('info', () => {
"deviceType": "physical",
"os": "Android",
"plugin": "Inspector",
"pluginEnabled": true,
"pluginName": "flipper-plugin-inspector",
"pluginVersion": "0.59.0",
}