Module: GraphQL::Tracing::Traceable Private
- Included in:
- Execution::Multiplex, Query, Query::Context::FieldResolutionContext
- Defined in:
- lib/graphql/tracing.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Objects may include traceable to gain a .trace(...)
method.
The object must have a @tracers
ivar of type Array<<#trace(k, d, &b)>>
.
Instance Method Summary collapse
-
#trace(key, metadata) ⇒ Object
private
Must return the value of the block.
Instance Method Details
#trace(key, metadata) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns Must return the value of the block.
56 57 58 |
# File 'lib/graphql/tracing.rb', line 56 def trace(key, ) call_tracers(0, key, ) { yield } end |