Class: GraphQL::Tracing::ScoutTracing
- Inherits:
-
PlatformTracing
- Object
- PlatformTracing
- GraphQL::Tracing::ScoutTracing
- Includes:
- ScoutApm::Tracer
- Defined in:
- lib/graphql/tracing/scout_tracing.rb
Constant Summary collapse
- INSTRUMENT_OPTS =
{ scope: true }
Instance Method Summary collapse
Methods inherited from PlatformTracing
#initialize, #instrument, #trace, use
Constructor Details
This class inherits a constructor from GraphQL::Tracing::PlatformTracing
Instance Method Details
#platform_field_key(type, field) ⇒ Object
28 29 30 |
# File 'lib/graphql/tracing/scout_tracing.rb', line 28 def platform_field_key(type, field) "#{type.name}.#{field.name}" end |
#platform_trace(platform_key, key, data) ⇒ Object
22 23 24 25 26 |
# File 'lib/graphql/tracing/scout_tracing.rb', line 22 def platform_trace(platform_key, key, data) self.class.instrument("GraphQL", platform_key, INSTRUMENT_OPTS) do yield end end |