Created
April 3, 2017 13:19
-
-
Save mainroach/1265df8d445cea28a8e16baefed1014f 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
def get(self): | |
with Trace("root", cloud_trace_context=self.request.headers.get('X-Cloud-Trace-Context')) as root: | |
self.response.headers.add_header('Content-Type',"text/plain") | |
time.sleep(0.1) | |
with root.span("slow"): | |
time.sleep(0.1) | |
self.response.write("You're traced!\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment