File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
apps/api-harmonization/src Expand file tree Collapse file tree 2 files changed +0
-18
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' ;
43import { LoggerService } from '@o2s/utils.logger' ;
54
65@Injectable ( )
@@ -32,8 +31,4 @@ export class AppService {
3231 } ,
3332 ) ;
3433 }
35-
36- async onApplicationShutdown ( ) {
37- await telemetry . flushEvents ( ) ;
38- }
3934}
Original file line number Diff line number Diff line change 11import { LogLevel } from '@nestjs/common' ;
22import { NestFactory } from '@nestjs/core' ;
3- import * as telemetry from '@o2s/telemetry' ;
43import { LoggerService } from '@o2s/utils.logger' ;
54import compression from 'compression' ;
65import cookieParser from 'cookie-parser' ;
@@ -53,18 +52,6 @@ async function bootstrap() {
5352
5453 app . useLogger ( app . get ( LoggerService ) ) ;
5554
56- telemetry . sendEvent ( 'api-harmonization' , 'bootstrap' ) ;
57- telemetry . sendEvent (
58- 'api-harmonization' ,
59- 'integrations' ,
60- Object . entries ( AppConfig . integrations ) . reduce ( ( prev , [ module , integration ] ) => {
61- return {
62- ...prev ,
63- [ module ] : integration . name ,
64- } ;
65- } , { } ) ,
66- ) ;
67-
6855 await app . listen ( process . env . PORT as string ) ;
6956}
7057
You can’t perform that action at this time.
0 commit comments