Skip to content

Instantly share code, notes, and snippets.

@nakabonne
Last active December 16, 2018 07:49
Show Gist options
  • Save nakabonne/5204f698566c3fdf8936f73ea2f3dfa0 to your computer and use it in GitHub Desktop.
Save nakabonne/5204f698566c3fdf8936f73ea2f3dfa0 to your computer and use it in GitHub Desktop.
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