File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
apps/api-harmonization/src Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 11import { HttpService } from '@nestjs/axios' ;
22import { Inject , Injectable } from '@nestjs/common' ;
3- import * as telemetry from '@o2s/telemetry' ;
43
54import { 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}
Original file line number Diff line number Diff line change 11import { LogLevel } from '@nestjs/common' ;
22import { NestFactory } from '@nestjs/core' ;
33import { NestExpressApplication } from '@nestjs/platform-express' ;
4- import * as telemetry from '@o2s/telemetry' ;
54import compression from 'compression' ;
65import cookieParser from 'cookie-parser' ;
76import helmet from 'helmet' ;
87import process from 'node:process' ;
98
109import { LoggerService } from '@o2s/utils.logger' ;
1110
12- import { AppConfig } from './app.config' ;
1311import { AppModule } from './app.module' ;
1412
1513async 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
You can’t perform that action at this time.
0 commit comments