Skip to content

Commit ad264db

Browse files
committed
docs: move AwsLambdaInstrumentor().instrument() to after the lambda function
1 parent ecf5529 commit ad264db

File tree

1 file changed

+2
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda

1 file changed

+2
-1
lines changed

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)