Our great sponsors
-
flamegraph
Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I've been looking into ways to achieve this, like https://github.com/flamegraph-rs/flamegraph, and https://github.com/tokio-rs/tracing, checking out span-close and parsing out the call-latency from that. It's been a bit messy, especially with tracing having to annotate all functions with #[instrument]. For my use-case, having to annotate everything isn't a dealbreaker but tracing does much more than just give call-latency, it's the most clear option for me at the moment but feels both unergonomic and a bit like overkill.
I've been looking into ways to achieve this, like https://github.com/flamegraph-rs/flamegraph, and https://github.com/tokio-rs/tracing, checking out span-close and parsing out the call-latency from that. It's been a bit messy, especially with tracing having to annotate all functions with #[instrument]. For my use-case, having to annotate everything isn't a dealbreaker but tracing does much more than just give call-latency, it's the most clear option for me at the moment but feels both unergonomic and a bit like overkill.