Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 085da4a

Browse files
committed
fix: pythonic dict construction for otel headers
1 parent eada022 commit 085da4a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hatchet_sdk/utils/tracing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def parse_headers(headers: str | None) -> dict[str, str]:
2121
return {}
2222

2323
try:
24-
otel_header_key, api_key = headers.split("=", maxsplit=1)
25-
26-
return {otel_header_key: api_key}
24+
return dict([headers.split("=", maxsplit=1)])
2725
except ValueError:
2826
raise ValueError("OTLP headers must be in the format `key=value`")
2927

0 commit comments

Comments
 (0)