Skip to content

Commit

Permalink
Fix: update unit test to use real lambda arn (#1267)
Browse files Browse the repository at this point in the history
This has to be done because the lambda instrumentation was updated to
extract the account id from the arn present in the lambda context
in this PR: open-telemetry/opentelemetry-python-contrib#2367
  • Loading branch information
rapphil committed Apr 22, 2024
1 parent 6e8faec commit 629c198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/otel/tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, aws_request_id, invoked_function_arn):

MOCK_LAMBDA_CONTEXT = MockLambdaContext(
aws_request_id="mock_aws_request_id",
invoked_function_arn="arn://mock-lambda-function-arn",
invoked_function_arn="arn:aws:lambda:us-west-2:123456789012:function:my-function",
)

MOCK_XRAY_TRACE_ID = 0x5FB7331105E8BB83207FA31D4D9CDB4C
Expand Down

0 comments on commit 629c198

Please sign in to comment.