Module: RSpecInstrumentation::RSpec

Defined in:
lib/rspec_instrumentation/rspec.rb

Class Method Summary collapse

Class Method Details

.setup(config, service:) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rspec_instrumentation/rspec.rb', line 7

def setup(config, service:)
  case service
  when :new_relic then NewRelic.new(config)
  when :sentry then Sentry.new(config)
  else warn("Unknown service: #{service}")
  end
end