Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pump, Cedric
lab-tracing
Commits
122ce88d
Commit
122ce88d
authored
Dec 27, 2020
by
Nane Kratzke
Browse files
debugging getting parent span
parent
b8aa8b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiphop/service.py
View file @
122ce88d
...
...
@@ -36,6 +36,7 @@ def hip():
r
=
""
try
:
parent_span
=
tracer
.
get_span
(
request
)
print
(
parent_span
)
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
Supports
Markdown
0%
Try again
or
attach a new 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