kubectl-trace
kubectl-trace copied to clipboard
can trace rust?
Is there any tutorial about how to use it in rust?
@Future2100 I have used kubectl-trace to trace Rust, usual rules of thumb apply:
- if you are trying to trace something compiled under
--release
make sure to keep debug symbols - If your stack traces have missing frames, make sure you have frame pointers on with
RUSTFLAGS=-Cforce-frame-pointers=yes
- Rust mangles symbols as it has to map a more complex feature set onto a simpler one - if you know a-priori what functions/symbols you may be interested in inspecting try the
#[no_mangle]
attribute