File: active_support_reporter.rb

package info (click to toggle)
ruby-grape-logging 1.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 244 kB
  • sloc: ruby: 845; makefile: 6; sh: 3
file content (11 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
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