apm-agent-ruby icon indicating copy to clipboard operation
apm-agent-ruby copied to clipboard

Profiling Every Method

Open sundarv85 opened this issue 5 years ago • 4 comments

Is your feature request related to a problem? Please describe.

We are seeing certain transactions are slower, but there are no slow database calls in those transactions. So we are not able to identify which methods of ours are slowing down unless we manually instrument all methods in that transaction as spans.

Describe the solution you'd like

If we could get a complete set of methods in a transaction, then we can view the full trace of the transaction

Would such a auto-instrumenting of methods already possible?

On a side note: In Java apm agent we found profiling_inferred_spans_enabled. I'm assuming this is kind of method tracing. Is that correct?

sundarv85 avatar Sep 01 '20 20:09 sundarv85

Unfortunately, this is a bit different for Ruby than it is for Java. We're looking at it but it's currently not possible with the agent.

  1. You can add all the custom instrumentation you'd like to. Wrap any methods you think might be culprits.
  2. You could try something like rbspy in production to generate profiles and flamegraphs for every method.

mikker avatar Sep 02 '20 11:09 mikker

Thanks @mikker You say you are currently looking at it... Will the direction be that each transaction will be profiled separately where all the methods that are called will be captured.

Is there an ETA already for this

Thanks.

sundarv85 avatar Sep 24 '20 22:09 sundarv85

Only looking at whether it's even a possibility or not. No ETA at all.

mikker avatar Sep 28 '20 13:09 mikker

Hi @mikker Is this in your long-term focus.. any plans to achieve this..

sundarv85 avatar Oct 23 '21 06:10 sundarv85