feat: implement query statistics
The query statistics samples the execution time of the opentelemetry's spans among 1% of all the running queries. Collected data is stored in the temporary spaces on each instance independently and can be analyzed by user (with the local SQL) or exported somewhere. The statistics spaces would be created by the sbroad itself if they do not exist yet.
Showing
- sbroad-cartridge/src/api/exec_query.rs 63 additions, 39 deletionssbroad-cartridge/src/api/exec_query.rs
- sbroad-cartridge/src/router.lua 5 additions, 5 deletionssbroad-cartridge/src/router.lua
- sbroad-core/src/backend/sql/ir.rs 8 additions, 2 deletionssbroad-core/src/backend/sql/ir.rs
- sbroad-core/src/executor.rs 2 additions, 5 deletionssbroad-core/src/executor.rs
- sbroad-core/src/otm.rs 182 additions, 52 deletionssbroad-core/src/otm.rs
- sbroad-core/src/otm/statistics.rs 166 additions, 0 deletionssbroad-core/src/otm/statistics.rs
- sbroad-core/src/otm/statistics/eviction.rs 60 additions, 0 deletionssbroad-core/src/otm/statistics/eviction.rs
- sbroad-core/src/otm/statistics/table.rs 605 additions, 0 deletionssbroad-core/src/otm/statistics/table.rs
Loading
Please register or sign in to comment