Skip to content

Commit

Permalink
docs: move AwsLambdaInstrumentor().instrument() to after the lambda…
Browse files Browse the repository at this point in the history
… function (#3085)

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
  • Loading branch information
Kludex and emdneto authored Dec 11, 2024
1 parent eb03dac commit d2a51b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
# Enable instrumentation
BotocoreInstrumentor().instrument()
AwsLambdaInstrumentor().instrument()
# Lambda function
def lambda_handler(event, context):
Expand All @@ -39,6 +38,8 @@ def lambda_handler(event, context):
return "200 OK"
AwsLambdaInstrumentor().instrument()
API
---
Expand Down

0 comments on commit d2a51b9

Please sign in to comment.