|
@@ -1,9 +1,3 @@
|
|
|
-# 导入skywalking链路监控
|
|
|
-from skywalking import agent, config
|
|
|
-config.init(collector='skywalking.piaoquantv.com:11800', service='rov-server')
|
|
|
-config.flask_collect_http_params = True
|
|
|
-agent.start()
|
|
|
-
|
|
|
import json
|
|
|
import time
|
|
|
|
|
@@ -21,6 +15,7 @@ from multiprocessing import cpu_count, Process
|
|
|
from utils import update_video_w_h_rate
|
|
|
# from werkzeug.middleware.profiler import ProfilerMiddleware
|
|
|
from gevent import monkey
|
|
|
+
|
|
|
monkey.patch_all()
|
|
|
|
|
|
app = Flask(__name__)
|