Method: GraphQL::Tracing::PlatformTracing#initialize

Defined in:
lib/graphql/tracing/platform_tracing.rb

#initialize(options = {}) ⇒ PlatformTracing

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 a new instance of PlatformTracing.

[View source] [View on GitHub]

19
20
21
22
23
# File 'lib/graphql/tracing/platform_tracing.rb', line 19

def initialize(options = {})
  @options = options
  @platform_keys = self.class.platform_keys
  @trace_scalars = options.fetch(:trace_scalars, false)
end