module ApolloFederation::Tracing

Constants

DEBUG_KEY
Error
KEY
Location
Node
Trace

Public Instance Methods

attach_trace_to_result(_result) click to toggle source

@deprecated There is no need to call this method. Traces are added to the result automatically

# File lib/apollo-federation/tracing.rb, line 19
def attach_trace_to_result(_result)
  warn '[DEPRECATION] `attach_trace_to_result` is deprecated. There is no need to call it, as '\
    'traces are added to the result automatically'
end
should_add_traces(headers) click to toggle source
# File lib/apollo-federation/tracing.rb, line 14
def should_add_traces(headers)
  headers && headers['apollo-federation-include-trace'] == KEY.to_s
end
use(schema) click to toggle source
# File lib/apollo-federation/tracing.rb, line 10
def use(schema)
  schema.tracer ApolloFederation::Tracing::Tracer
end