esd / tracing-plugin
tracing-plugin
0.6
2019-06-12 07:28 UTC
Requires
- esd/aop-plugin: ~0.1
- esd/esd-core: ~0.1
- esd/pack-plugin: ~0.1
- esd/saber-plugin: ~0.1
- jcchavezs/zipkin-opentracing: ^0.1.2
Requires (Dev)
- esd/esd-server: ~0.1
- guzzlehttp/guzzle: ^6.0
README
opentracing jaeger
链路追踪插件,提供链路追踪功能,结合jaegerUI或者zipkin提供链路追踪视图
添加相应插件,其中RequestTracingPlugin为追踪请求的主要插件,DBTracingPlugin负责Redis,mysql的链路,HttpClientTracingPlugin负责saber,guzzle的链路, MethodTracingPlugin负责相关方法的链路。MethodTracingPlugin性能损耗最高,酌情使用。
class Application extends GoApplication
{
public function configure()
{
$this->addPlug(new RequestTracingPlugin());
$this->addPlug(new DBTracingPlugin());
$this->addPlug(new MethodTracingPlugin());
$this->addPlug(new HttpClientTracingPlugin());
parent::configure();
}
}