Created
May 31, 2017 14:11
-
-
Save mainroach/d4f3e1c0a0889d91c3b90726bd4e303d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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