Skip to content

Commit 4fa2de2

Browse files
committed
fix linting
1 parent 47b2b86 commit 4fa2de2

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

lambda-layer/sample-apps/function/lambda_function.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import os
21
import json
3-
import requests
2+
import os
3+
44
import boto3
5+
import requests
56

67
client = boto3.client("s3")
78

9+
810
# lambda function
911
def lambda_handler(event, context):
1012

lambda-layer/src/tests/test_lambda_instrumentation.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,13 @@
2626
from unittest import mock
2727

2828
from opentelemetry.environment_variables import OTEL_PROPAGATORS
29-
from opentelemetry.instrumentation.aws_lambda import (
30-
_HANDLER,
31-
_X_AMZN_TRACE_ID,
32-
ORIG_HANDLER,
33-
AwsLambdaInstrumentor,
34-
)
35-
from opentelemetry.propagators.aws.aws_xray_propagator import (
36-
TRACE_ID_FIRST_PART_LENGTH,
37-
TRACE_ID_VERSION,
38-
)
29+
from opentelemetry.instrumentation.aws_lambda import _HANDLER, _X_AMZN_TRACE_ID, ORIG_HANDLER, AwsLambdaInstrumentor
30+
from opentelemetry.propagators.aws.aws_xray_propagator import TRACE_ID_FIRST_PART_LENGTH, TRACE_ID_VERSION
3931
from opentelemetry.semconv.resource import ResourceAttributes
4032
from opentelemetry.semconv.trace import SpanAttributes
4133
from opentelemetry.test.test_base import TestBase
4234
from opentelemetry.trace import SpanKind
43-
from opentelemetry.trace.propagation.tracecontext import (
44-
TraceContextTextMapPropagator,
45-
)
35+
from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator
4636

4737
AWS_LAMBDA_EXEC_WRAPPER = "AWS_LAMBDA_EXEC_WRAPPER"
4838
INIT_OTEL_SCRIPTS_DIR = os.path.join(*(os.path.dirname(__file__), ".."))

0 commit comments

Comments
 (0)