From fad2f41809a7d874d63c5864d6bd687780bafa8b Mon Sep 17 00:00:00 2001 From: Raphael Silva Date: Mon, 22 Apr 2024 05:31:18 +0000 Subject: [PATCH] Fix: update unit test to use real lambda arn 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: https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2367 --- python/src/otel/tests/test_otel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/otel/tests/test_otel.py b/python/src/otel/tests/test_otel.py index 917ebe0ae6..bfe16a55df 100644 --- a/python/src/otel/tests/test_otel.py +++ b/python/src/otel/tests/test_otel.py @@ -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