mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix regression in our ml usage collection (#81945)
A regression was introduced in #74965 that caused an error to be thrown while collecting telemetry on ML jobs. Because such exceptions are caught and we degrade to zeroing out those counts, this one was not caught until manual testing of telemetry.
This commit is contained in:
parent
271a799ef8
commit
91a84d5d0f
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ export const getMlJobsUsage = async (ml: MlPluginSetup | undefined): Promise<MlJ
|
|||
|
||||
if (ml) {
|
||||
try {
|
||||
const fakeRequest = {} as KibanaRequest;
|
||||
const fakeRequest = { headers: {} } as KibanaRequest;
|
||||
const fakeSOClient = {} as SavedObjectsClient;
|
||||
|
||||
const modules = await ml.modulesProvider(fakeRequest, fakeSOClient).listModules();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue