Dec 16, 2024
Support Rails tagged logging and other improvements
Ruby4.2.2
Added
-
Support Rails/ActiveSupport tagged logging. When tags are set in apps using
Rails.logger.tagged { ... }
or with theRails.application.config.log_tags = [...]
config option, these tags are now included in the collected log messages.RubyRails.logger.tagged(["Tag 1", "Tag 2"]) { Rails.logger.info("My message") }
Reports this log message:
[Tag 1] [Tag 2] My message
Fixed
- Fix a thread safety issue where sending check-in events simultaneously from different threads would cause several check-in schedulers to be initialised internally. This could cause some of the scheduled check-in events to never be sent to AppSignal when
Appsignal.stop
is called.
View the Ruby gem v4.2.2 changelog for more information.