Open siddontang opened 6 years ago
This seems like potentially a good mentor issue. Can somebody provide a little more information on how to get started here?
Per liu: "for open tracing, although it has been supported in tidb, we still don’t enable by default because it can hurt the performance. and now for tikv, we prefer adding more metrics and logs to help us locate some problems easily, so tracing may has lower priority."
A performant option possibly worth looking at would be https://github.com/tokio-rs/tracing/. It allows you to add trace information with very low overhead when not used. Also has OpenTelemetry integration via https://github.com/tokio-rs/tracing/tree/master/tracing-opentelemetry.
TiDB and PD have already supported opentracing, we can add it later.
There is a lib https://github.com/sile/rustracing and it has a good completion.