Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 为Google云端点设置指标_Google App Engine_Google Cloud Endpoints - Fatal编程技术网

Google app engine 为Google云端点设置指标

Google app engine 为Google云端点设置指标,google-app-engine,google-cloud-endpoints,Google App Engine,Google Cloud Endpoints,我想在生产服务器上设置Google云端点。什么是分析请求的好方法?仅支持WSGI请求 提前谢谢 我实际上可以解决这个问题。深入研究端点,我可以看到它实际上是一个WSGI服务器。并使用Appstats对其进行了测试,效果良好,需要添加到文档中 在appengine_config.py中,我执行了以下操作: def webapp_add_wsgi_middleware(app): from google.appengine.ext.appstats import recording

我想在生产服务器上设置Google云端点。什么是分析请求的好方法?仅支持WSGI请求


提前谢谢

我实际上可以解决这个问题。深入研究端点,我可以看到它实际上是一个WSGI服务器。并使用Appstats对其进行了测试,效果良好,需要添加到文档中

在appengine_config.py中,我执行了以下操作:

def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = recording.appstats_wsgi_middleware(app)
    return app
webapp_add_wsgi_middleware(api_app)

这也适用于生产。

正确。云端点是一个API代理,它转换API请求并将它们转发到protorpc后端
/\u ah/spi/*
路由。这些路线就是您要分析的路线。您将不会在日志查看器中看到任何
/\u ah/api/*
请求。