Module: GraphQL::Tracing::PlatformTrace

Included in:
AppOpticsTrace, AppsignalTrace, DataDogTrace, NewRelicTrace, NotificationsTrace, PrometheusTrace, ScoutTrace, StatsdTrace
Defined in:
lib/graphql/tracing/platform_trace.rb

Instance Method Summary collapse

Instance Method Details

#initialize(trace_scalars: false, **_options) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/graphql/tracing/platform_trace.rb', line 6

def initialize(trace_scalars: false, **_options)
  @trace_scalars = trace_scalars
  @platform_field_key_cache = Hash.new { |h, k| h[k] = platform_field_key(k) }
  @platform_authorized_key_cache = Hash.new { |h, k| h[k] = platform_authorized_key(k) }
  @platform_resolve_type_key_cache = Hash.new { |h, k| h[k] = platform_resolve_type_key(k) }
  super
end

#platform_authorized_lazy(key, &block) ⇒ Object



18
19
20
# File 'lib/graphql/tracing/platform_trace.rb', line 18

def platform_authorized_lazy(key, &block)
  platform_authorized(key, &block)
end

#platform_execute_field_lazy(*args, &block) ⇒ Object



14
15
16
# File 'lib/graphql/tracing/platform_trace.rb', line 14

def platform_execute_field_lazy(*args, &block)
  platform_execute_field(*args, &block)
end

#platform_resolve_type_lazy(key, &block) ⇒ Object



22
23
24
# File 'lib/graphql/tracing/platform_trace.rb', line 22

def platform_resolve_type_lazy(key, &block)
  platform_resolve_type(key, &block)
end