Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pump, Cedric
lab-tracing
Commits
8c8445cb
Commit
8c8445cb
authored
Mar 07, 2021
by
Nane Kratzke
Browse files
redirect span
parent
9b9380cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiphop/service.py
View file @
8c8445cb
...
...
@@ -17,7 +17,8 @@ apm = ElasticAPM(app,
@
app
.
route
(
'/'
)
def
index
():
return
redirect
(
'/hip'
)
with
elasticapm
.
capture_span
(
"redirect"
):
return
redirect
(
'/hip'
)
@
app
.
route
(
'/hip'
)
def
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
}
)"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment