nginx 的平常的应用开发中占比仍是比较高的,opentracing 是一个分布式追踪标准
相应是开源实现也比较多。nginx-opentracing 是一个opentracing nginx 的插件,让咱们能够
方便的进行服务的性能追踪,查看服务调用依赖nginx
例子使用官方demo,运行使用docker-compose git
git clone https://github.com/opentracing-contrib/nginx-opentracing.git
cd nginx-opentracing/example/trivial/jaeger docker-compose build docker-compose up -d
curl localhost:8080
nginx-opentracing 支持的分布式追踪的工具仍是比较多的,经过简单的配置,咱们就能实现一些基本的性能分析。github
https://github.com/opentracing-contrib/nginx-opentracingdocker