Skip to content

Commit d6a0243

Browse files
Fix AWS Lambda documentation (#1693)
Fix `ImportError: cannot import name 'AwsBotocoreInstrumentor' from 'opentelemetry.instrumentation.botocore'` Co-authored-by: Srikanth Chekuri <[email protected]>
1 parent 7ffbfc3 commit d6a0243

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
# Copy this snippet into an AWS Lambda function
2525
2626
import boto3
27-
from opentelemetry.instrumentation.botocore import AwsBotocoreInstrumentor
27+
from opentelemetry.instrumentation.botocore import BotocoreInstrumentor
2828
from opentelemetry.instrumentation.aws_lambda import AwsLambdaInstrumentor
2929
3030
# Enable instrumentation
31-
AwsBotocoreInstrumentor().instrument()
31+
BotocoreInstrumentor().instrument()
3232
AwsLambdaInstrumentor().instrument()
3333
3434
# Lambda function

0 commit comments

Comments
 (0)