2

我已经为我的 Python App Engine 应用程序启用了 appstats,我可以在 /_ah/stats/ url 下本地访问它,但是当我部署应用程序并在 UI 中访问我的应用程序下的 appspot.com 时,没有自定义 AppStats 链接为它应该有。在我的 yaml 文件中,我定义:

builtins:
- appstats: on

我像这样包装我的应用程序appengine_config.py

def webapp_add_wsgi_middleware(app):
  app = SessionMiddleware(app, cookie_key="MyRandomString")
  app = recording.appstats_wsgi_middleware(app)
  return app

我从这个答案中使用了这个配置。

我错过了什么吗?

4

1 回答 1

7

管理站点中不应有链接(除非您使用admin_console添加它)。
统计信息应在 your-app-id.appspot.com/_ah/stats 上可用

于 2011-11-03T10:21:30.797 回答