-
-
Notifications
You must be signed in to change notification settings - Fork 522
Description
We want to look into extending our Profiling product with support for Ruby.
On other platforms, we used an existing profiler as a starting point or completely relied on external packages.
When a txn starts, a new profiling_sample_rate, which works in relation to traces_sample_rate, determines if this txn should be profiled. Our default sample rate on other platforms is 101Hz.
On finish, we convert the raw output to our own profiling format and attach it as a profile envelope item to the transaction.
https://github.com/rbspy/rbspy might be worth looking into, as it's a sampling profiler that also supports outputting a speedscope compatible format, something our own format is derived from.