Commit 8c8445cb authored by Nane Kratzke's avatar Nane Kratzke
Browse files

redirect span

parent 9b9380cf
......@@ -17,6 +17,7 @@ apm = ElasticAPM(app,
@app.route('/')
def index():
with elasticapm.capture_span("redirect"):
return redirect('/hip')
@app.route('/hip')
......@@ -25,7 +26,6 @@ def hip():
r = ""
url = f"http://{ service }-{ tier + 1 }/hip"
try:
#with elasticapm.capture_span(f"{ service }-{ tier + 1 }"):
r = requests.get(url).content
except Exception as ex:
logging.error(f"Fetching { url } failed ({ ex })")
......
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