Skip to content

Commit ed687ab

Browse files
fix: removed telemetry from nestjs
1 parent 269c936 commit ed687ab

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

apps/api-harmonization/src/app.service.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { HttpService } from '@nestjs/axios';
22
import { Inject, Injectable } from '@nestjs/common';
3-
import * as telemetry from '@o2s/telemetry';
43

54
import { LoggerService } from '@o2s/utils.logger';
65

@@ -33,8 +32,4 @@ export class AppService {
3332
},
3433
);
3534
}
36-
37-
async onApplicationShutdown() {
38-
await telemetry.flushEvents();
39-
}
4035
}

apps/api-harmonization/src/main.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { LogLevel } from '@nestjs/common';
22
import { NestFactory } from '@nestjs/core';
33
import { NestExpressApplication } from '@nestjs/platform-express';
4-
import * as telemetry from '@o2s/telemetry';
54
import compression from 'compression';
65
import cookieParser from 'cookie-parser';
76
import helmet from 'helmet';
87
import process from 'node:process';
98

109
import { LoggerService } from '@o2s/utils.logger';
1110

12-
import { AppConfig } from './app.config';
1311
import { AppModule } from './app.module';
1412

1513
async function bootstrap() {
@@ -56,19 +54,6 @@ async function bootstrap() {
5654

5755
app.useLogger(app.get(LoggerService));
5856

59-
telemetry.sendEvent('o2s', 'api-harmonization', 'bootstrap');
60-
telemetry.sendEvent(
61-
'o2s',
62-
'api-harmonization',
63-
'integrations',
64-
Object.entries(AppConfig.integrations).reduce((prev, [module, integration]) => {
65-
return {
66-
...prev,
67-
[module]: integration.name,
68-
};
69-
}, {}),
70-
);
71-
7257
await app.listen(process.env.PORT as string);
7358
}
7459

0 commit comments

Comments
 (0)