Repository for dynamic tracing queries.
We primarily use Ubuntu 18.04 for our tests. For convenience, dependencies can be installed with the setup.sh command. It contains all the steps necessary to set up the compiler.
rustto build the dynamic tracing compilerbazelto build WASM filters for Envoy
The compiler can be installed with cargo install --path . --root . --no-track.
After, the binary can be found in the bin folder.
`target/release/snicket -q [QUERY] -u [USER_DEFINED_FUNCTION]`
- Compile a counting query with the user defined function "height" and result will be written to
rust_filter/filter.rs.
target/release/snicket -q example_queries/height.cql -u example_udfs/height.rs -o rust_filter/filter.rs -c sim -r productpage-v1
- Compile
service_namequery and result wiil be written to default location tofilter_envoy/filter.rs
target/debug/dtc -q example_queries/get_service_name.cql -o rust_filter/filter.rs -c sim -r productpage-v1