Skip to content

Commit 773e129

Browse files
committed
fix: capture headers
Signed-off-by: Varsha GS <[email protected]>
1 parent 2268fb6 commit 773e129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instana/util/traceutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from instana.span.span import InstanaSpan
1313

1414
def extract_custom_headers(span: "InstanaSpan", headers: Optional[Union[Dict[str, Any], List[Tuple[object, ...]], Iterable]] = None, format: Optional[bool] = False) -> None:
15-
if not headers:
15+
if not (agent.options.extra_http_headers and headers):
1616
return
1717
try:
1818
for custom_header in agent.options.extra_http_headers:

0 commit comments

Comments
 (0)