Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/instana/util/traceutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from instana.span.span import InstanaSpan

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