File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
} from '@nestjs/common' ;
7
7
import { GqlExecutionContext } from '@nestjs/graphql' ;
8
8
import XRay from 'aws-xray-sdk-core' ;
9
- import { GlobalHttpHook , HttpAdapter } from '~/core/http' ;
9
+ import { type GlobalHttpHook , HttpAdapter } from '~/core/http' ;
10
10
import { ConfigService } from '../config/config.service' ;
11
11
import { Sampler } from './sampler' ;
12
12
import { TracingService } from './tracing.service' ;
@@ -23,7 +23,7 @@ export class XRayMiddleware implements NestInterceptor {
23
23
/**
24
24
* Setup root segment for request/response.
25
25
*/
26
- @GlobalHttpHook ( )
26
+ // @GlobalHttpHook () // disabled, xray tracing not really helping us.
27
27
onRequest ( ...[ req , res , next ] : Parameters < GlobalHttpHook > ) {
28
28
const traceData = XRay . utils . processTraceData (
29
29
req . headers [ 'x-amzn-trace-id' ] as string | undefined ,
You can’t perform that action at this time.
0 commit comments