aserafin/grape_logging

View on GitHub
lib/grape_logging/reporters/active_support_reporter.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Reporters
  class ActiveSupportReporter
    def initialize(instrumentation_key)
      @instrumentation_key = instrumentation_key
    end

    def perform(params)
      ActiveSupport::Notifications.instrument @instrumentation_key, params
    end
  end
end