Importante
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.
See the New Relic Ruby agent EOL policy for information about agent releases and support dates.
v10.9.0
Feature: Continuous Profiling (preview)
Continuous Profiling is a new feature which is not yet generally available for use. The agent-side component code is now present in the agent but to actually use it ahead of the General Availability release, you will need to contact your New Relic sales representative to join the preview early.
Continuous Profiling repeatedly samples the Ruby call stacks of your running application and reports them to New Relic, so you can see which methods are consuming the most CPU time (or allocating the most objects) in production, without adding code to your app.
To turn it on, add the
stackprofandgoogle-protobufgems to your application'sGemfile, then setprofiling.enabledtotrue:profiling.enabled: trueWith only
profiling.enabledset, the agent samples CPU time every 10 milliseconds for the life of the process. These options let you tune that behavior:Configuration name Default Behavior profiling.enabled falseIf true, the agent collects and reports continuous profiling data.profiling.include cpuWhat to sample: cpufor CPU time, orobjectfor object allocations.profiling.sample_period 0.01Seconds between stack samples. Only used when profiling.includeiscpu. Must be between 0.000001 and 0.999999.profiling.object_allocation_interval 10000Object allocations between stack samples. Only used when profiling.includeisobject. Must be between 1000 and 999999.profiling.delay 0Milliseconds to wait before profiling starts. 0starts immediately.profiling.duration 0Milliseconds to profile before stopping automatically. 0profiles until the process exits.Feature: Add support for Dalli 5.1.1
Dalli 5.1.1 added arguments to some of the methods the agent instruments, which could raise an
ArgumentErroron multi-key operations or cause request options to be silently dropped. Now, the agent accepts and forwards a variable number of positional and keyword arguments for these methods. PR#3683