Commit 3f2ef564 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

span from request

parent 29760745
...@@ -35,7 +35,7 @@ def hip(): ...@@ -35,7 +35,7 @@ def hip():
print(request.headers) print(request.headers)
r = "" r = ""
try: try:
parent_span = tracer.get_span() parent_span = tracer.get_span(request)
with opentracing.tracer.start_span(f"{service}-{tier + 1}", child_of=parent_span) as span: with opentracing.tracer.start_span(f"{service}-{tier + 1}", child_of=parent_span) as span:
url = f"http://{service}-{tier + 1}" url = f"http://{service}-{tier + 1}"
span.set_tag("http.url", url) span.set_tag("http.url", url)
......
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