From 03671e1836cf939d44e2483b291b85829107ffa5 Mon Sep 17 00:00:00 2001 From: Carson Full Date: Mon, 4 Nov 2024 17:19:38 -0600 Subject: [PATCH] Disable xray tracing (middleware) --- src/core/tracing/xray.middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/tracing/xray.middleware.ts b/src/core/tracing/xray.middleware.ts index e9853d3e66..427a035d87 100644 --- a/src/core/tracing/xray.middleware.ts +++ b/src/core/tracing/xray.middleware.ts @@ -6,6 +6,7 @@ import { } from '@nestjs/common'; import { GqlExecutionContext } from '@nestjs/graphql'; import XRay from 'aws-xray-sdk-core'; +import { Disabled } from '~/common'; import { GlobalHttpHook, HttpAdapter } from '~/core/http'; import { ConfigService } from '../config/config.service'; import { Sampler } from './sampler'; @@ -23,7 +24,7 @@ export class XRayMiddleware implements NestInterceptor { /** * Setup root segment for request/response. */ - @GlobalHttpHook() + @Disabled('XRay tracing is not really helping us')(GlobalHttpHook()) onRequest(...[req, res, next]: Parameters) { const traceData = XRay.utils.processTraceData( req.headers['x-amzn-trace-id'] as string | undefined,