Skip to content
GitLab
Menu
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
b1b332be
Commit
b1b332be
authored
Dec 27, 2020
by
Nane Kratzke
Browse files
added tracing
parent
fdb68604
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiphop/service.py
View file @
b1b332be
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
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