Skip to content

Commit a954164

Browse files
committed
fixed test
1 parent 0fbee76 commit a954164

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations/lambda-handler.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import * as path from 'path';
2222
import {
2323
AwsLambdaInstrumentation,
2424
AwsLambdaInstrumentationConfig,
25-
traceContextEnvironmentKey,
2625
lambdaMaxInitInMilliseconds,
2726
} from '../../src';
2827
import {
@@ -534,7 +533,7 @@ describe('lambda handler', () => {
534533
});
535534

536535
it('can extract context from lambda context env variable using a global propagator', async () => {
537-
process.env[traceContextEnvironmentKey] = sampledAwsHeader;
536+
process.env['_X_AMZN_TRACE_ID'] = sampledAwsHeader;
538537
propagation.setGlobalPropagator(new AWSXRayLambdaPropagator());
539538
initializeHandler('lambda-test/async.handler');
540539

0 commit comments

Comments
 (0)