Class: Skylight::Normalizers::GraphQL::Execute Private
- Inherits:
-
Base
- Object
- Normalizer
- Base
- Skylight::Normalizers::GraphQL::Execute
- 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
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Normalizer
Instance Method Summary collapse
-
#normalize(trace, name, payload) ⇒ Object
private
This is a new, combined normalizer for execute_query and execute_multiplex, to be used for graphql >= 2.5.
- #normalize_after(trace, span, name, payload) ⇒ Object private
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 |