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 1
1
import { HttpService } from '@nestjs/axios' ;
2
2
import { Inject , Injectable } from '@nestjs/common' ;
3
- import * as telemetry from '@o2s/telemetry' ;
4
3
import { LoggerService } from '@o2s/utils.logger' ;
5
4
6
5
@Injectable ( )
@@ -32,8 +31,4 @@ export class AppService {
32
31
} ,
33
32
) ;
34
33
}
35
-
36
- async onApplicationShutdown ( ) {
37
- await telemetry . flushEvents ( ) ;
38
- }
39
34
}
Original file line number Diff line number Diff line change 1
1
import { LogLevel } from '@nestjs/common' ;
2
2
import { NestFactory } from '@nestjs/core' ;
3
- import * as telemetry from '@o2s/telemetry' ;
4
3
import { LoggerService } from '@o2s/utils.logger' ;
5
4
import compression from 'compression' ;
6
5
import cookieParser from 'cookie-parser' ;
@@ -53,18 +52,6 @@ async function bootstrap() {
53
52
54
53
app . useLogger ( app . get ( LoggerService ) ) ;
55
54
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
-
68
55
await app . listen ( process . env . PORT as string ) ;
69
56
}
70
57
You can’t perform that action at this time.
0 commit comments