Module: Roda::RodaPlugins::Appsignal
- Defined in:
- lib/roda/plugins/appsignal.rb,
lib/roda/plugins/appsignal/version.rb
Overview
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'
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- VERSION =
'2.0.1'
Class Method Summary collapse
Class Method Details
.configure(app, namespace: 'web', sanitize: proc { |name| name }) ⇒ Object
15 16 17 18 19 |
# 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 |