Class: GraphQL::Tracing::DataDogTrace::DatadogMonitor::Event

Inherits:
MonitorTrace::Monitor::Event show all
Defined in:
lib/graphql/tracing/data_dog_trace.rb

Instance Attribute Summary

Attributes inherited from MonitorTrace::Monitor::Event

#keyword, #object

Instance Method Summary collapse

Methods inherited from MonitorTrace::Monitor::Event

#initialize

Constructor Details

This class inherits a constructor from GraphQL::Tracing::MonitorTrace::Monitor::Event

Instance Method Details

#finishObject



64
65
66
# File 'lib/graphql/tracing/data_dog_trace.rb', line 64

def finish
  @dd_span.finish
end

#startObject



59
60
61
62
# File 'lib/graphql/tracing/data_dog_trace.rb', line 59

def start
  name = @monitor.name_for(keyword, object)
  @dd_span = @monitor.tracer.trace(name, service: @monitor.service_name, type: 'custom')
end