Class: GraphQL::Tracing::NewRelicTrace::NewrelicMonitor::Event

Inherits:
MonitorTrace::Monitor::Event show all
Defined in:
lib/graphql/tracing/new_relic_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



61
62
63
# File 'lib/graphql/tracing/new_relic_trace.rb', line 61

def finish
  @nr_ev.finish
end

#startObject



56
57
58
59
# File 'lib/graphql/tracing/new_relic_trace.rb', line 56

def start
  name = @monitor.name_for(keyword, object)
  @nr_ev = NewRelic::Agent::Tracer.start_transaction_or_segment(partial_name: name, category: :web)
end