class Reporters::ActiveSupportReporter
Public Class Methods
new(instrumentation_key)
click to toggle source
# File lib/grape_logging/reporters/active_support_reporter.rb, line 3 def initialize(instrumentation_key) @instrumentation_key = instrumentation_key end
Public Instance Methods
perform(params)
click to toggle source
# File lib/grape_logging/reporters/active_support_reporter.rb, line 7 def perform(params) ActiveSupport::Notifications.instrument @instrumentation_key, params end