Skip to content

Commit 5acb2f4

Browse files
committed
set AWS_LAMBDA_FUNCTION_NAME env var to prevent skipping AWS Lambda instrumentation for fixing the failing tests after version upgrade to 0.51b0
1 parent 9b62367 commit 5acb2f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/src/otel/tests/test_otel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
)
4646

4747
AWS_LAMBDA_EXEC_WRAPPER = "AWS_LAMBDA_EXEC_WRAPPER"
48+
AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"
4849
INIT_OTEL_SCRIPTS_DIR = os.path.join(
4950
*(os.path.dirname(__file__), "..", "otel_sdk")
5051
)
@@ -182,6 +183,7 @@ def setUp(self):
182183
"os.environ",
183184
{
184185
AWS_LAMBDA_EXEC_WRAPPER: "mock_aws_lambda_exec_wrapper",
186+
AWS_LAMBDA_FUNCTION_NAME: "test-func",
185187
_HANDLER: "mocks.lambda_function.handler",
186188
},
187189
)

0 commit comments

Comments
 (0)