Skip to content

Commit c3a439f

Browse files
committed
fix style
1 parent 28b2307 commit c3a439f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/patches/instrumentation-patch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ function patchAwsSdkInstrumentation(instrumentation: Instrumentation): void {
311311
// Need to set capitalized version of the trace id to ensure that the Recursion Detection Middleware
312312
// of aws-sdk-js-v3 will detect the propagated X-Ray Context
313313
// See: https://github.com/aws/aws-sdk-js-v3/blob/v3.768.0/packages/middleware-recursion-detection/src/index.ts#L13
314-
const xray_trace_id = middlewareArgs.request.headers[AWSXRAY_TRACE_ID_HEADER];
314+
const xrayTraceId = middlewareArgs.request.headers[AWSXRAY_TRACE_ID_HEADER];
315315

316-
if (xray_trace_id) {
317-
middlewareArgs.request.headers[AWSXRAY_TRACE_ID_HEADER_CAPITALIZED] = xray_trace_id;
316+
if (xrayTraceId) {
317+
middlewareArgs.request.headers[AWSXRAY_TRACE_ID_HEADER_CAPITALIZED] = xrayTraceId;
318318
delete middlewareArgs.request.headers[AWSXRAY_TRACE_ID_HEADER];
319319
}
320320
const result = await next(middlewareArgs);

0 commit comments

Comments
 (0)