docs: move AwsLambdaInstrumentor().instrument() to after the lambda function (#3085)

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
This commit is contained in:
Marcelo Trylesinski
2024-12-11 16:02:37 +01:00
committed by GitHub
parent eb03dac1f0
commit d2a51b95e5

View File

@ -29,7 +29,6 @@ Usage
# Enable instrumentation
BotocoreInstrumentor().instrument()
AwsLambdaInstrumentor().instrument()
# Lambda function
def lambda_handler(event, context):
@ -39,6 +38,8 @@ Usage
return "200 OK"
AwsLambdaInstrumentor().instrument()
API
---