Module: GraphQL::Tracing::PlatformTrace
- Included in:
- AppOpticsTrace, AppsignalTrace, DataDogTrace, NewRelicTrace, NotificationsTrace, PrometheusTrace, ScoutTrace, SentryTrace, StatsdTrace
- Defined in:
- lib/graphql/tracing/platform_trace.rb
Defined Under Namespace
Modules: BaseKeyCache
Instance Method Summary collapse
- #initialize(trace_scalars: false, **_options) ⇒ Object
- #platform_authorized_lazy(key, &block) ⇒ Object
- #platform_execute_field_lazy(*args, &block) ⇒ Object
- #platform_resolve_type_lazy(key, &block) ⇒ Object
Instance Method Details
#initialize(trace_scalars: false, **_options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/graphql/tracing/platform_trace.rb', line 6 def initialize(trace_scalars: false, **) @trace_scalars = trace_scalars @platform_key_cache = Hash.new { |h, mod| h[mod] = mod::KeyCache.new } super end |
#platform_authorized_lazy(key, &block) ⇒ Object
28 29 30 |
# File 'lib/graphql/tracing/platform_trace.rb', line 28 def (key, &block) (key, &block) end |
#platform_execute_field_lazy(*args, &block) ⇒ Object
24 25 26 |
# File 'lib/graphql/tracing/platform_trace.rb', line 24 def platform_execute_field_lazy(*args, &block) platform_execute_field(*args, &block) end |
#platform_resolve_type_lazy(key, &block) ⇒ Object
32 33 34 |
# File 'lib/graphql/tracing/platform_trace.rb', line 32 def platform_resolve_type_lazy(key, &block) platform_resolve_type(key, &block) end |