Class: GraphQL::Tracing::LegacyTrace

Inherits:
Trace
  • Object
show all
Defined in:
lib/graphql/tracing.rb

Instance Method Summary collapse

Methods inherited from Trace

#initialize

Constructor Details

This class inherits a constructor from GraphQL::Tracing::Trace

Instance Method Details

#analyze_multiplex(multiplex:, &block) ⇒ Object



109
110
111
# File 'lib/graphql/tracing.rb', line 109

def analyze_multiplex(multiplex:, &block)
  multiplex.trace("analyze_multiplex", { multiplex: multiplex }, &block)
end

#analyze_query(query:, &block) ⇒ Object



113
114
115
# File 'lib/graphql/tracing.rb', line 113

def analyze_query(query:, &block)
  query.trace("analyze_query", { query: query }, &block)
end

#authorized(query:, type:, object:, &block) ⇒ Object



137
138
139
# File 'lib/graphql/tracing.rb', line 137

def authorized(query:, type:, object:, &block)
  query.trace("authorized", { context: query.context, type: type, object: object, path: query.context[:current_path] }, &block)
end

#authorized_lazy(query:, type:, object:, &block) ⇒ Object



141
142
143
# File 'lib/graphql/tracing.rb', line 141

def authorized_lazy(query:, type:, object:, &block)
  query.trace("authorized_lazy", { context: query.context, type: type, object: object, path: query.context[:current_path] }, &block)
end

#execute_field(field:, query:, ast_node:, arguments:, object:, &block) ⇒ Object



129
130
131
# File 'lib/graphql/tracing.rb', line 129

def execute_field(field:, query:, ast_node:, arguments:, object:, &block)
  query.trace("execute_field", { field: field, query: query, ast_node: ast_node, arguments: arguments, object: object, owner: field.owner, path: query.context[:current_path] }, &block)
end

#execute_field_lazy(field:, query:, ast_node:, arguments:, object:, &block) ⇒ Object



133
134
135
# File 'lib/graphql/tracing.rb', line 133

def execute_field_lazy(field:, query:, ast_node:, arguments:, object:, &block)
  query.trace("execute_field_lazy", { field: field, query: query, ast_node: ast_node, arguments: arguments, object: object, owner: field.owner, path: query.context[:current_path] }, &block)
end

#execute_multiplex(multiplex:, &block) ⇒ Object



117
118
119
# File 'lib/graphql/tracing.rb', line 117

def execute_multiplex(multiplex:, &block)
  multiplex.trace("execute_multiplex", { multiplex: multiplex }, &block)
end

#execute_query(query:, &block) ⇒ Object



121
122
123
# File 'lib/graphql/tracing.rb', line 121

def execute_query(query:, &block)
  query.trace("execute_query", { query: query }, &block)
end

#execute_query_lazy(query:, multiplex:, &block) ⇒ Object



125
126
127
# File 'lib/graphql/tracing.rb', line 125

def execute_query_lazy(query:, multiplex:, &block)
  multiplex.trace("execute_query_lazy", { multiplex: multiplex, query: query }, &block)
end

#lex(query_string:, &block) ⇒ Object



97
98
99
# File 'lib/graphql/tracing.rb', line 97

def lex(query_string:, &block)
  (@multiplex || @query).trace("lex", { query_string: query_string }, &block)
end

#parse(query_string:, &block) ⇒ Object



101
102
103
# File 'lib/graphql/tracing.rb', line 101

def parse(query_string:, &block)
  (@multiplex || @query).trace("parse", { query_string: query_string }, &block)
end

#resolve_type(query:, type:, object:, &block) ⇒ Object



145
146
147
# File 'lib/graphql/tracing.rb', line 145

def resolve_type(query:, type:, object:, &block)
  query.trace("resolve_type", { context: query.context, type: type, object: object, path: query.context[:current_path] }, &block)
end

#resolve_type_lazy(query:, type:, object:, &block) ⇒ Object



149
150
151
# File 'lib/graphql/tracing.rb', line 149

def resolve_type_lazy(query:, type:, object:, &block)
  query.trace("resolve_type_lazy", { context: query.context, type: type, object: object, path: query.context[:current_path] }, &block)
end

#validate(query:, validate:, &block) ⇒ Object



105
106
107
# File 'lib/graphql/tracing.rb', line 105

def validate(query:, validate:, &block)
  query.trace("validate", { validate: validate, query: query }, &block)
end