所以我正在使用Google App Engine上的Flask构建应用程序。我正在使用的skelton代码可以在。 https://github.com/GoogleCloudPlatform/appengine-python-flask-skeleton。
我正在尝试安装Appstats中间件,以便我可以在我的webapp上跟踪资源消耗。以下链接https://developers.google.com/appengine/docs/python/tools/appstats建议使用以下函数在WSGI请求处理程序上启用appstats。
我找不到他们导入的模块
from google.appengine.ext.appstats import recording
我从哪里得到这个?它不在斯凯尔顿代码中。
答案 0 :(得分:0)
你读过文件的其余部分了吗?特别是设置部分 - https://developers.google.com/appengine/docs/python/tools/appstats#Python_Set_the_console_path
您需要启用appstats库作为内置函数。
你做过这个吗?