* feat: add apiVersion to telemetry (#448) * feat: add apiVersion * fix: key * refactor: move insights apiVersion into telemetryServise.ts * fix: apiVerion to "version: 2.0.0"
This commit is contained in:
Родитель
ce009bc175
Коммит
99e2683584
|
@ -208,7 +208,7 @@ export default class TrainPage extends React.Component<ITrainPageProps, ITrainPa
|
|||
});
|
||||
});
|
||||
if (this.appInsights) {
|
||||
this.appInsights.trackEvent({ name: "TRAIN_MODEL_EVENT" });
|
||||
this.appInsights.trackEvent({name: "TRAIN_MODEL_EVENT"});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import {ApplicationInsights} from '@microsoft/applicationinsights-web';
|
||||
import {ReactPlugin} from '@microsoft/applicationinsights-react-js';
|
||||
import { appInfo } from "../common/appInfo";
|
||||
|
||||
let reactPlugin = null;
|
||||
let appInsights = null;
|
||||
|
@ -42,6 +43,7 @@ const createTelemetryService = () => {
|
|||
});
|
||||
|
||||
appInsights.loadAppInsights();
|
||||
appInsights.context.application.ver = appInfo.version;
|
||||
};
|
||||
|
||||
return {reactPlugin, appInsights, initialize};
|
||||
|
|
Загрузка…
Ссылка в новой задаче