Module: Datadog::Tracing::Contrib::ActionCable::Event::ClassMethods

Included in:
RootContextEvent::ClassMethods
Defined in:
lib/datadog/tracing/contrib/action_cable/event.rb

Overview

Class methods for events.

Instance Method Summary collapse

Instance Method Details

#configurationObject



29
30
31
# File 'lib/datadog/tracing/contrib/action_cable/event.rb', line 29

def configuration
  Datadog.configuration.tracing[:action_cable]
end

#span_optionsObject



21
22
23
24
25
26
27
# File 'lib/datadog/tracing/contrib/action_cable/event.rb', line 21

def span_options
  if configuration[:service_name]
    { service: configuration[:service_name] }
  else
    {}
  end
end