Ignore instrumentation
Ignore instrumentation events
A web request or background job sample can contain many instrumentation events shown on the event timeline. However, not all events are essential as they may not provide significant or valuable insights into a sample's performance, and seeing a high number of events can make it difficult to spot problematic areas on the timeline.
If the application has a place that creates a lot of events, like queries, external requests, or rendering views, the Ruby gem can ignore these events using the ignore_instrumentation_events
helper.
(In Ruby gem 3.10 and older the ignore_instrumentation_events
helper is called without_instrumentation
).
The ignore_instrumentation_events
helper will ignore events reported by the instrument
helper. The Ruby gem will continue reporting errors and metrics that occur within this block. The ignore_instrumentation_events
helper does not affect the sample's total duration.