mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 12:43:39 +08:00
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:

committed by
GitHub

parent
eb03dac1f0
commit
d2a51b95e5
@ -29,7 +29,6 @@ Usage
|
|||||||
|
|
||||||
# Enable instrumentation
|
# Enable instrumentation
|
||||||
BotocoreInstrumentor().instrument()
|
BotocoreInstrumentor().instrument()
|
||||||
AwsLambdaInstrumentor().instrument()
|
|
||||||
|
|
||||||
# Lambda function
|
# Lambda function
|
||||||
def lambda_handler(event, context):
|
def lambda_handler(event, context):
|
||||||
@ -39,6 +38,8 @@ Usage
|
|||||||
|
|
||||||
return "200 OK"
|
return "200 OK"
|
||||||
|
|
||||||
|
AwsLambdaInstrumentor().instrument()
|
||||||
|
|
||||||
API
|
API
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user