Class: Skylight::Normalizers::GraphQL::Execute Private

Inherits:
Base show all
Defined in:
lib/skylight/normalizers/graphql/base.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

ExecuteMultiplex, ExecuteQuery

Constant Summary

Constants inherited from Base

Base::ANONYMOUS, Base::CAT

Instance Attribute Summary

Attributes inherited from Normalizer

#config

Instance Method Summary collapse

Methods inherited from Base

inherited, key, register_graphql

Methods inherited from Normalizer

#initialize, #normalize_with_meta, register

Methods included from Util::Logging

#config_for_logging, #debug, #error, #fmt, #info, #log, #log_context, #raise_on_error?, #t, #trace, #trace?, #warn

Constructor Details

This class inherits a constructor from Skylight::Normalizers::Normalizer

Instance Method Details

#normalize(trace, name, payload) ⇒ 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.

This is a new, combined normalizer for execute_query and execute_multiplex, to be used for graphql >= 2.5



68
69
70
# File 'lib/skylight/normalizers/graphql/base.rb', line 68

def normalize(trace, name, payload)
  payload[:query] ? _execute_query_normalize(trace, name, payload) : [CAT, "graphql.#{key}", nil]
end

#normalize_after(trace, span, name, payload) ⇒ 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.



72
73
74
# File 'lib/skylight/normalizers/graphql/base.rb', line 72

def normalize_after(trace, span, name, payload)
  _execute_multiplex_normalize_after(trace, span, name, payload) if payload[:multiplex]
end