StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.01k stars 1.81k forks source link

[Feature request] tracing in SQL requests #50646

Open mingmxu opened 2 months ago

mingmxu commented 2 months ago

Feature request

Is your feature request related to a problem? Please describe. It's hard to dig into the details while troubleshooting a query. In our use case, queries from clients are sent to Starrocks using the JDBC protocol, and Datadog is the observability platform for log/metric collection, etc.

It lacks some core features when looking into the details of the query processing:

Describe the solution you'd like With OpenTelemetry, we build a platform-independent trace record for each SQL request to expose the processing information, including spans and log events, within/between FE and BE components. It includes several improvements:

Describe alternatives you've considered

Additional context We run a PoC(proof-of-concept) to achieve some of the requirements, the solution is implemented as below:

mingmxu commented 2 months ago

cc @dengliu @chaoyli