1
0

Explain weird function

This commit is contained in:
Eric Eastwood
2022-07-29 17:06:43 -05:00
parent 19d20b50e8
commit 786dd9b4b1

View File

@@ -610,6 +610,8 @@ def inject_active_span_context_into_header_dict(
return
active_span = get_active_span()
# This doesn't affect the current context at all, it just converts a span
# into `Context` object basically (bad name).
ctx = opentelemetry.trace.propagation.set_span_in_context(active_span)
propagator = opentelemetry.propagate.get_global_textmap()
@@ -649,6 +651,8 @@ def get_active_span_text_map(destination: Optional[str] = None) -> Dict[str, str
return {}
active_span = get_active_span()
# This doesn't affect the current context at all, it just converts a span
# into `Context` object basically (bad name).
ctx = opentelemetry.trace.propagation.set_span_in_context(active_span)
carrier_text_map: Dict[str, str] = {}