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
3f2ef564
Commit
3f2ef564
authored
Dec 27, 2020
by
Nane Kratzke
Browse files
span from request
parent
29760745
Changes
1
Show whitespace changes
Inline
Side-by-side
hiphop/service.py
View file @
3f2ef564
...
...
@@ -35,7 +35,7 @@ def hip():
print
(
request
.
headers
)
r
=
""
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
:
url
=
f
"http://
{
service
}
-
{
tier
+
1
}
"
span
.
set_tag
(
"http.url"
,
url
)
...
...
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