Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- from flask import Flask
- from ddtrace import tracer
- app = Flask(__name__)
- def function1():
- time.sleep(0.1)
- return True
- def function2():
- time.sleep(0.1)
- return True
- @app.route("/")
- def gob_resource():
- time.sleep(0.1);
- result1 = function1();
- time.sleep(0.2);
- result2 = function2();
- time.sleep(0.1)
- return 'Hello, world'
Add Comment
Please, Sign In to add comment