Class: GraphQL::Tracing::DataDogTrace::DatadogMonitor::Event
Instance Attribute Summary
#keyword, #object
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
64
65
66
|
# File 'lib/graphql/tracing/data_dog_trace.rb', line 64
def finish
@dd_span.finish
end
|
#start ⇒ Object
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
|