appsignal Ruby gem you can use our object integrations which
provides you with some useful helpers to do so.
Installation
Activate the object integration by requiring the following line after loading the appsignal gem itselfExample
Usage
We have different helpers for instance methods and class methods,appsignal_instrument_method and appsignal_instrument_class_method
respectively.
Call them on class level in any Ruby class, even those from the Ruby standard
library, and start instrumenting. You don’t need to include anything else in
the class, once you load the integration file it becomes available everywhere.
Instrument any method by calling the helper with the name of the method
you want to instrument. If the method does not exist, it will throw
an error, just like Ruby would do by default.
Once a request has been processed by AppSignal with this type of
instrumentation you will be able to see the method instrumentation in the event
breakdown on the sample page.

:name option.