From a954164e01b881d585f585407923691dcfcb3442 Mon Sep 17 00:00:00 2001 From: Martin Kuba Date: Thu, 31 Oct 2024 14:31:41 -0700 Subject: [PATCH] fixed test --- .../test/integrations/lambda-handler.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts b/plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts index fc5a5d8b1f..7b338cbd6d 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts @@ -22,7 +22,6 @@ import * as path from 'path'; import { AwsLambdaInstrumentation, AwsLambdaInstrumentationConfig, - traceContextEnvironmentKey, lambdaMaxInitInMilliseconds, } from '../../src'; import { @@ -534,7 +533,7 @@ describe('lambda handler', () => { }); it('can extract context from lambda context env variable using a global propagator', async () => { - process.env[traceContextEnvironmentKey] = sampledAwsHeader; + process.env['_X_AMZN_TRACE_ID'] = sampledAwsHeader; propagation.setGlobalPropagator(new AWSXRayLambdaPropagator()); initializeHandler('lambda-test/async.handler');