ydb-platform / nbs

Network Block & File Store
Apache License 2.0
58 stars 22 forks source link

[Disk Manager] Tracing with Open Telemetry #1199

Open gy2411 opened 6 months ago

gy2411 commented 6 months ago

Traced should be collected for all requests to Disk Manager should be traced. Given request_id, we need opportunity to see what was this request doing (which tasks scheduled, which queries to nbs/nfs/ydb/s3 made, when exactly it happened and how much time did different steps take).

We are going to use Open Telemetry framework https://opentelemetry.io/. Namely, we should add instrumentation to Disk Manager code for creating spans and events. Also Disk Manager must be able to use trace context passed by caller (like trace id and parent span id) if it is present. Also Disk Manager must be able to export traces to a backend (in order to store and visualize traces).

gy2411 commented 2 months ago

Further improvements of tracing in Disk Manager: