From d2a51b95e54089a59fb36b3390aee1b6acf2b937 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 11 Dec 2024 16:02:37 +0100 Subject: [PATCH] docs: move `AwsLambdaInstrumentor().instrument()` to after the lambda function (#3085) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com> --- .../src/opentelemetry/instrumentation/aws_lambda/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py b/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py index 68db87ca30..b31e6dea72 100644 --- a/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py @@ -29,7 +29,6 @@ # Enable instrumentation BotocoreInstrumentor().instrument() - AwsLambdaInstrumentor().instrument() # Lambda function def lambda_handler(event, context): @@ -39,6 +38,8 @@ def lambda_handler(event, context): return "200 OK" + AwsLambdaInstrumentor().instrument() + API ---