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

added tracing

parent fdb68604
......@@ -33,7 +33,11 @@ def index():
def hip():
r = ""
try:
r = requests.get(f"http://{service}-{tier + 1}", allow_redirects=True)
current_span = tracing.get_span(request)
text_carrier = {}
tracing.inject(span, opentracing.Format.TEXT_MAP, text_carrier)
print(text_carrier)
r = requests.get(f"http://{service}-{tier + 1}", headers=text_carrier, allow_redirects=True)
print(r)
r = r.content.decode('utf-8')
except Exception as ex:
......
Supports Markdown
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