Skip to content

Instantly share code, notes, and snippets.

@mainroach
Created May 31, 2017 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mainroach/d4f3e1c0a0889d91c3b90726bd4e303d to your computer and use it in GitHub Desktop.
Save mainroach/d4f3e1c0a0889d91c3b90726bd4e303d to your computer and use it in GitHub Desktop.
class MainHandler(webapp2.RequestHandler):
def get(self):
# Let's just trace some stuff
with TraceContext() as root:
time.sleep(0.1)
with root.span("slow") as spn:
time.sleep(2)
with root.span("my slow") as spn:
time.sleep(2)
with root.span("penut butter") as spn:
time.sleep(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment