composer require topthink/think-tracing
composer require jcchavezs/zipkin-opentracing
composer require jonahgeorge/jaeger-client-php
扩展内提供了think\tracing\middleware\TraceRequests
中间,配置到路由里或者全局中间件
使用了中间件后,该组件默认会跟踪到错误
配置文件里errors设置为false可以关闭
配置
async
,数据临时存储到redis,单独起一个进程php think tracing:report
来上报数据