module Datadog::Contrib::ActiveSupport::Notifications::Event::ClassMethods
Redefines some class behaviors for a Subscriber
to make it a bit simpler for an Event
.
Constants
- DEFAULT_TRACER
Public Instance Methods
span_options()
click to toggle source
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 52 def span_options {} end
subscribe(pattern = nil, span_name = nil, options = nil, tracer = nil)
click to toggle source
Calls superclass method
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 36 def subscribe(pattern = nil, span_name = nil, options = nil, tracer = nil) if supported? super( pattern || event_name, span_name || self.span_name, options || span_options, tracer || self.tracer, &method(:process) ) end end
subscribe!()
click to toggle source
Calls superclass method
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 23 def subscribe! super end
subscription(span_name = nil, options = nil, tracer = nil)
click to toggle source
Calls superclass method
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 27 def subscription(span_name = nil, options = nil, tracer = nil) super( span_name || self.span_name, options || span_options, tracer || self.tracer, &method(:process) ) end
supported?()
click to toggle source
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 48 def supported? true end
tracer()
click to toggle source
# File lib/ddtrace/contrib/active_support/notifications/event.rb, line 56 def tracer DEFAULT_TRACER end