Skip to content

Commit d2a51b9

Browse files
Kludexemdneto
andauthored
docs: move AwsLambdaInstrumentor().instrument() to after the lambda function (#3085)
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
1 parent eb03dac commit d2a51b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda

instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
3030
# Enable instrumentation
3131
BotocoreInstrumentor().instrument()
32-
AwsLambdaInstrumentor().instrument()
3332
3433
# Lambda function
3534
def lambda_handler(event, context):
@@ -39,6 +38,8 @@ def lambda_handler(event, context):
3938
4039
return "200 OK"
4140
41+
AwsLambdaInstrumentor().instrument()
42+
4243
API
4344
---
4445

0 commit comments

Comments
 (0)