Class: GraphQL::Tracing::ScoutTrace::ScoutMonitor::Event
Instance Attribute Summary
#keyword, #object
Instance Method Summary
collapse
#initialize
Instance Method Details
#finish ⇒ Object
42
43
44
|
# File 'lib/graphql/tracing/scout_trace.rb', line 42
def finish
@scout_req.stop_layer
end
|
#start ⇒ Object
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
|