Class TracingSupport

  • All Implemented Interfaces:
    InstrumentationState

    @PublicApi
    public class TracingSupport
    extends java.lang.Object
    implements InstrumentationState
    This creates a map of tracing information as outlined in https://github.com/apollographql/apollo-tracing

    This is a stateful object that should be instantiated and called via Instrumentation calls. It has been made a separate class so that you can compose this into existing instrumentation code.

    • Constructor Detail

      • TracingSupport

        public TracingSupport​(boolean includeTrivialDataFetchers)
        The timer starts as soon as you create this object
        Parameters:
        includeTrivialDataFetchers - whether the trace trivial data fetchers
    • Method Detail

      • snapshotTracingData

        public java.util.Map<java.lang.String,​java.lang.Object> snapshotTracingData()
        This will snapshot this tracing and return a map of the results
        Returns:
        a snapshot of the tracing data