Last active
December 16, 2018 07:49
-
-
Save nakabonne/5204f698566c3fdf8936f73ea2f3dfa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if int(os.environ['SERVICE_NAME']) == 1 : | |
for header in TRACE_HEADERS_TO_PROPAGATE: | |
if header in request.headers: | |
# Comment out here | |
# headers[header] = request.headers[header] | |
ret = requests.get("http://localhost:9000/trace/2", headers=headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment