def enable_appstats(app):
    from google.appengine.ext.appstats.recording import \
        appstats_wsgi_middleware
    app.dispatch = appstats_wsgi_middleware(app.dispatch)
Enables appstats middleware.
dataset/ETHPy150Open moraes/tipfy/project/app/main.py/enable_appstats