Commit a1533ea3 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

span creation

parent 1af9fc23
......@@ -35,7 +35,7 @@ def hip():
print(request.headers)
r = ""
try:
parent_span = tracer.get_span(request)
parent_span = tracer.get_span(request) if "X-B3-Traceid" in request.headers else tracer.get_span()
print(f"{parent_span}")
with opentracing.tracer.start_span(f"{service}-{tier + 1}", child_of=parent_span) as span:
url = f"http://{service}-{tier + 1}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment