Class: GraphQL::Tracing::ScoutTrace::ScoutMonitor::Event

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



42
43
44
# File 'lib/graphql/tracing/scout_trace.rb', line 42

def finish
  @scout_req.stop_layer
end

#startObject



35
36
37
38
39
40
# File 'lib/graphql/tracing/scout_trace.rb', line 35

def start
  layer = ScoutApm::Layer.new("GraphQL", @monitor.name_for(keyword, object))
  layer.subscopable!
  @scout_req = ScoutApm::RequestManager.lookup
  @scout_req.start_layer(layer)
end