Class: GraphQL::Tracing::StatsdTrace::StatsdMonitor::Event
Instance Attribute Summary
#keyword, #object
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
40
41
42
43
|
# File 'lib/graphql/tracing/statsd_trace.rb', line 40
def finish
elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @start_time
@monitor.statsd.timing(@monitor.name_for(keyword, object), elapsed)
end
|
#start ⇒ Object
36
37
38
|
# File 'lib/graphql/tracing/statsd_trace.rb', line 36
def start
@start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
end
|