We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8142e3f commit 3412a6eCopy full SHA for 3412a6e
ddtrace/propagation/http.py
@@ -30,7 +30,10 @@ def parent_call():
30
"""
31
headers[HTTP_HEADER_TRACE_ID] = str(span_context.trace_id)
32
headers[HTTP_HEADER_PARENT_ID] = str(span_context.span_id)
33
- headers[HTTP_HEADER_SAMPLING_PRIORITY] = str(span_context.sampling_priority)
+ sampling_priority = span_context.sampling_priority
34
+ # Propagate priority only if defined
35
+ if sampling_priority is not None:
36
+ headers[HTTP_HEADER_SAMPLING_PRIORITY] = str(span_context.sampling_priority)
37
38
def extract(self, headers):
39
"""Extract a Context from HTTP headers into a new Context.
0 commit comments