module Roda::RodaPlugins::Appsignal
The appsignal plugin starts and sets APM instrumentation via Appsignal
Example:
plugin :appsignal plugin :appsignal, sanitize: proc { |action_name| action_name.gsub(/\d+\/, '') } plugin :appsignal, namespace: 'custom_namespace'
Constants
- VERSION
Public Class Methods
configure(app, namespace: 'web', sanitize: proc { |name| name })
click to toggle source
# File lib/roda/plugins/appsignal.rb, line 15 def self.configure(app, namespace: 'web', sanitize: proc { |name| name }) app.opts[:appsignal_sanitize] = sanitize app.opts[:appsignal_namespace] = namespace app.use ::Appsignal::Rack::GenericInstrumentation end