Sha256: 7bc3eb6bd649ecd8fcfd3fc462bd91eda6647bdb6256f0d913d11239a81091e5
Contents?: true
Size: 668 Bytes
Versions: 4
Compression:
Stored size: 668 Bytes
Contents
require 'woodhouse' module Woodhouse::NewRelic class << self def install_extension(configuration, opts = {}, &blk) require 'woodhouse/extensions/new_relic/instrumentation_middleware' configuration.runner_middleware << Woodhouse::NewRelic::InstrumentationMiddleware configuration.at(:server_start) do ::NewRelic::Agent.manual_start configuration.logger.info "New Relic agent started." end configuration.at(:server_end) do ::NewRelic::Agent.shutdown configuration.logger.info "New Relic agent shut down." end end end end Woodhouse::Extension.register :new_relic, Woodhouse::NewRelic
Version data entries
4 entries across 4 versions & 1 rubygems