fix installation registration
This commit is contained in:
parent
5f320f6b77
commit
55ab5062de
@ -12,13 +12,16 @@ export class InstallationMetricsService implements OnApplicationBootstrap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onApplicationBootstrap(): Promise<void> {
|
async onApplicationBootstrap(): Promise<void> {
|
||||||
const tracker = new MatomoTracker(1, this.host)
|
const tracker = new MatomoTracker(2, this.host)
|
||||||
|
|
||||||
tracker.on('error', () => {
|
tracker.on('error', () => {
|
||||||
this.logger.error('failed to register instance')
|
this.logger.error('failed to add installation metrics')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
this.logger.info('try to add installation metrics')
|
||||||
|
|
||||||
tracker.track({
|
tracker.track({
|
||||||
|
url: `http://localhost/version/${process.env.npm_package_version}`,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||||
action_name: 'startup',
|
action_name: 'startup',
|
||||||
ua: process.arch
|
ua: process.arch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user