Apr 29, 2024
Probe improvements and small fixes
Ruby3.7.1
Changed
- If the gem can't find a valid log path in the app's
log/
directory, it will no longer print the warning more than once. - Stop the minutely probes when
Appsignal.stop
is called. WhenAppsignal.stop
is called, the probes thread will no longer continue running in the app process. - Listen to the
APPSIGNAL_HTTP_PROXY
environment variable in the extension installer. WhenAPPSIGNAL_HTTP_PROXY
is set duringgem instal appsignal
orbundle install
, it will use the proxy specified in theAPPSIGNAL_HTTP_PROXY
environment variable to download the extension and agent. - Allow unregistering minutely probes. Use
Appsignal::Probes.unregister
to unregister probes registered withAppsignal::Probes.register
if you do not need a certain probe, including default probes. - Add
Appsignal::Probes.register
method as the preferred method to register probes. TheAppsignal::Probes.probes.register
andAppsignal::Minutely.probes.register
methods are now deprecated. - Automatically start new probes registered with
Appsignal::Probes.register
when the gem has already started the probes thread. Previously, the late registered probes would not be run. - Rename the Minutely constant to Probes so that the API is the same between AppSignal integrations. If your apps calls
Appsignal::Minutely
, please update it toAppsignal::Probes
. If your app callsAppsignal::Minutely
after this upgrade without the name change, the gem will print a deprecation warning for each time theAppsignal::Minutely
is called. - Log debug messages when metrics are received for easier debugging.
Fixed
- Clear the AppSignal in memory logger, used during the gem start, after the file/STDOUT logger is started. This reduces memory usage of the AppSignal Ruby gem by a tiny bit, and prevent stale logs being logged whenever a process gets forked and starts AppSignal.
See the Ruby gem 3.7.1 changelog for more information.