class Airbrake::Rails::Event
def time
Experimental RBS support (using type sampling data from the type_fusion
project).
def time: () -> untyped
This signature was generated using 5 samples from 1 application.
def time # On RailsĀ 7+ `ActiveSupport::Notifications::Event#time` returns an # instance of Float. It represents monotonic time in milliseconds. # Airbrake Ruby expects that the provided time is in seconds. Hence, # we need to convert it from milliseconds to seconds. In the # versions below Rails 7, time is an instance of Time. # # Relevant commit: # https://github.com/rails/rails/commit/81d0dc90becfe0b8e7f7f26beb66c25d84b8ec7f @rails_7_or_greater ? @event.time / MILLISECOND : @event.time end