Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app = Flask(__name__)
- tracer = FlaskTracer(args)
- @app.route("/")
- def untraced_endpoint():
- return "This endpoint is not traced."
- @app.route("/some-traced-url")
- @tracer.trace()
- def traced_endpoint():
- return "This endpoint is traced!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement