Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions python/src/otel/otel_sdk/otel_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import os
from importlib import import_module

from opentelemetry.instrumentation.aws_lambda import AwsLambdaInstrumentor


def modify_module_name(module_name):
Expand All @@ -48,9 +47,6 @@ def modify_module_name(module_name):
class HandlerError(Exception):
pass


AwsLambdaInstrumentor().instrument()

path = os.environ.get("ORIG_HANDLER")

if path is None:
Expand Down
1 change: 1 addition & 0 deletions python/src/otel/tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def mock_execute_lambda(event=None):
Args:
event: The Lambda event which may or may not be used by instrumentation.
"""
AwsLambdaInstrumentor().instrument()

# The point of the repo is to test using the script, so we can count on it
# being here for every test and do not check for its existence.
Expand Down
Loading