Skip to content

Commit

Permalink
fix: capture headers
Browse files Browse the repository at this point in the history
Signed-off-by: Varsha GS <varsha.gs@ibm.com>
  • Loading branch information
GSVarsha committed Jan 20, 2025
1 parent 2268fb6 commit 773e129
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 773e129

Please sign in to comment.