You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/08/10 14:11:46 UTC
[GitHub] [skywalking] alonelaval edited a comment on issue #5263: Python agent supports uwsgi
alonelaval edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-671378544
@tmacjx
I used flask to test in the environment of gunicorn, it can run normally.
```
import requests
from skywalking import config, agent
config.service_name = 'consumer'
config.logging_level = 'DEBUG'
config.flask_collect_http_params = True
agent.start()
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/users", methods=["POST", "GET"])
def application():
requests.post("http://github.com")
return jsonify({"test": "hello world"})
```
command:`gunicorn -w 4 test_gunicorn:app`
when i use `uwsgi --http 127.0.0.1:8000 --buffer-size=65536 --processes=4 --module test_gunicorn:app ` still work well,but segment report slowed。
![image](https://user-images.githubusercontent.com/1763449/89791766-4e90bc00-db56-11ea-9e58-b6e945e28a98.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org