Module: Tobox::Plugins::Datadog
- Defined in:
- lib/tobox/plugins/datadog.rb
Defined Under Namespace
Classes: EventHandler
Class Method Summary collapse
Class Method Details
.configure(config, **datadog_options, &blk) ⇒ Object
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/tobox/plugins/datadog.rb', line 91 def configure(config, **, &blk) event_handler = EventHandler.new(config) config.on_before_event(&event_handler.method(:on_start)) config.on_after_event(&event_handler.method(:on_finish)) config.on_error_event(&event_handler.method(:on_error)) ::Datadog.configure do |c| c.tracing.instrument :tobox, yield(c) if blk end end |
.load_dependencies ⇒ Object
87 88 89 |
# File 'lib/tobox/plugins/datadog.rb', line 87 def load_dependencies(*) require "uri" end |