We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f54a2 commit fa2e561Copy full SHA for fa2e561
2 files changed
instana/instrumentation/boto3_inst.py
@@ -17,7 +17,7 @@
17
from boto3.s3 import inject
18
19
def extract_custom_headers(span, headers):
20
- if agent.options.extra_http_headers is None:
+ if agent.options.extra_http_headers is None or headers is None:
21
return
22
try:
23
for custom_header in agent.options.extra_http_headers:
tests/clients/boto3/test_boto3_lambda.py
@@ -10,8 +10,6 @@
10
from sys import version_info
11
if version_info >= (3, 8):
12
from moto import mock_aws
13
-else:
14
- from moto import mock_lambda as mock_aws
15
16
from instana.singletons import tracer, agent
from ...helpers import get_first_span_by_filter
0 commit comments