Class: GraphQL::Tracing::NotificationsTrace::Adapter
- Inherits:
-
Object
- Object
- GraphQL::Tracing::NotificationsTrace::Adapter
- Defined in:
- lib/graphql/tracing/notifications_trace.rb
Overview
:nodoc:
Direct Known Subclasses
Defined Under Namespace
Classes: Event
Instance Method Summary collapse
Instance Method Details
#instrument(keyword, payload, &block) ⇒ Object
13 14 15 |
# File 'lib/graphql/tracing/notifications_trace.rb', line 13 def instrument(keyword, payload, &block) raise "Implement #{self.class}#instrument to measure the block" end |
#start_event(keyword, payload) ⇒ Object
17 18 19 20 21 |
# File 'lib/graphql/tracing/notifications_trace.rb', line 17 def start_event(keyword, payload) ev = self.class::Event.new(keyword, payload) ev.start ev end |