Skip to content

Commit 0c8902d

Browse files
authored
Disable xray tracing (middleware) (#3323)
1 parent 3b521a4 commit 0c8902d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/tracing/xray.middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@nestjs/common';
77
import { GqlExecutionContext } from '@nestjs/graphql';
88
import XRay from 'aws-xray-sdk-core';
9-
import { GlobalHttpHook, HttpAdapter } from '~/core/http';
9+
import { type GlobalHttpHook, HttpAdapter } from '~/core/http';
1010
import { ConfigService } from '../config/config.service';
1111
import { Sampler } from './sampler';
1212
import { TracingService } from './tracing.service';
@@ -23,7 +23,7 @@ export class XRayMiddleware implements NestInterceptor {
2323
/**
2424
* Setup root segment for request/response.
2525
*/
26-
@GlobalHttpHook()
26+
// @GlobalHttpHook() // disabled, xray tracing not really helping us.
2727
onRequest(...[req, res, next]: Parameters<GlobalHttpHook>) {
2828
const traceData = XRay.utils.processTraceData(
2929
req.headers['x-amzn-trace-id'] as string | undefined,

0 commit comments

Comments
 (0)