kubectl-trace icon indicating copy to clipboard operation
kubectl-trace copied to clipboard

can trace rust?

Open Future2100 opened this issue 3 years ago • 1 comments

Is there any tutorial about how to use it in rust?

Future2100 avatar Oct 07 '20 09:10 Future2100

@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

adelbertc avatar Oct 17 '20 21:10 adelbertc