Add tracking to the global Gerrit object
Change-Id: I5cfc05db59e2effd2d8762e485d74f8d69d6602d
diff --git a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
index bd564c5..2bb4a1a 100644
--- a/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
+++ b/polygerrit-ui/app/services/gr-reporting/gr-reporting_impl.ts
@@ -819,7 +819,11 @@
);
}
- trackApi(pluginApi: PluginApi, object: string, method: string) {
+ trackApi(
+ pluginApi: Pick<PluginApi, 'getPluginName'>,
+ object: string,
+ method: string
+ ) {
const plugin = pluginApi?.getPluginName() ?? 'unknown';
this.reportExecution(Execution.PLUGIN_API, {plugin, object, method});
}