Skip to content

Commit fa2e561

Browse files
GSVarshaFerenc-
authored andcommitted
minor fixes
Signed-off-by: Varsha GS <[email protected]>
1 parent 76f54a2 commit fa2e561

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

instana/instrumentation/boto3_inst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from boto3.s3 import inject
1818

1919
def extract_custom_headers(span, headers):
20-
if agent.options.extra_http_headers is None:
20+
if agent.options.extra_http_headers is None or headers is None:
2121
return
2222
try:
2323
for custom_header in agent.options.extra_http_headers:

tests/clients/boto3/test_boto3_lambda.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
from sys import version_info
1111
if version_info >= (3, 8):
1212
from moto import mock_aws
13-
else:
14-
from moto import mock_lambda as mock_aws
1513

1614
from instana.singletons import tracer, agent
1715
from ...helpers import get_first_span_by_filter

0 commit comments

Comments
 (0)