refactor: move tracing from sbroad to picodata
- Update sbroad submodule to commit, with refactored tracing api: tracer can be provided by library user (us). - Use tracer that creates traces under admin, because traces are created randomly for 1% of the queries and the user may not have the privileges to create/modify tracing tables - Move tracing related logic to picodata repo. In particular, now all tables storing tracing - Add sql tests that were removed from sbroad during refactoring - added extra parameter 'query_id' to pico.sql lua api. 'query_id' is used to identify each query in tracing tables, if not specified hash function on query text is used. - changed signature of pico.sql to: pico.sql(pattern[, params, options) options={'traceable'=boolean,'query_id'=string}
parent
8a3400d5
No related branches found
No related tags found
Showing
- Cargo.lock 4 additions, 79 deletionsCargo.lock
- Cargo.toml 4 additions, 0 deletionsCargo.toml
- sbroad 1 addition, 1 deletionsbroad
- src/lib.rs 4 additions, 1 deletionsrc/lib.rs
- src/luamod.rs 3 additions, 2 deletionssrc/luamod.rs
- src/sql.rs 110 additions, 54 deletionssrc/sql.rs
- src/sql/init.lua 19 additions, 8 deletionssrc/sql/init.lua
- src/sql/otm.rs 591 additions, 0 deletionssrc/sql/otm.rs
- src/sql/pgproto.rs 1 addition, 1 deletionsrc/sql/pgproto.rs
- test/conftest.py 5 additions, 8 deletionstest/conftest.py
- test/int/test_sql.py 132 additions, 2 deletionstest/int/test_sql.py
Loading
Please register or sign in to comment