Replies: 2 comments
-
The equivalent in Python is working well. Code: def fn_py(millis: int, context_carrier: dict[str, str]):
print("context carrier:", context_carrier)
remote_context = extract(context_carrier)
print("remote context:", remote_context)
attach(remote_context)
print("current context:", get_current())
with tracer.start_as_current_span("sleep_py_1") as span:
print("sleep_py_1:", span)
time.sleep(millis / 1000)
with tracer.start_as_current_span("sleep_py_2") as span:
print("sleep_py_2:", span)
time.sleep(millis / 1000)
return "Python: OK" Output (note
|
Beta Was this translation helpful? Give feedback.
-
Nevermind, I missed a breaking change and failed to set
|
Beta Was this translation helpful? Give feedback.
-
I want to create a new span as a child of an external span, but it fails.
Instead of a new span, it keeps reusing the parent span.
Code:
Output:
Beta Was this translation helpful? Give feedback.
All reactions