Interface InstrumentationState

All Known Implementing Classes:
ChainedInstrumentation.ChainedInstrumentationState, DataLoaderDispatcherInstrumentationState, FieldLevelTrackingApproach.CallStack, MaxQueryComplexityInstrumentation.State, TracingSupport

@PublicSpi public interface InstrumentationState
An Instrumentation implementation can create this as a stateful object that is then passed to each instrumentation method, allowing state to be passed down with the request execution
See Also:
  • Method Details

    • ofState

      static <T extends InstrumentationState> T ofState(InstrumentationState rawState)
      This helper method allows you to cast from InstrumentationState to a custom classes more easily.
      Type Parameters:
      T - for two
      Parameters:
      rawState - the raw InstrumentationState
      Returns:
      a cast custom InstrumentationState