Class DataFetcherObservationContext

java.lang.Object
io.micrometer.observation.Observation.Context
org.springframework.graphql.observation.DataFetcherObservationContext
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView

public class DataFetcherObservationContext extends io.micrometer.observation.Observation.Context
Context that holds information for metadata collection during observations for data fetching operations.
Since:
1.1.0
Author:
Brian Clozel
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the data fetching environment provided as an input.
    Return the value returned by the DataFetcher, if any.

    Methods inherited from class io.micrometer.observation.Observation.Context

    addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micrometer.observation.Observation.ContextView

    getOrDefault
  • Method Details

    • getEnvironment

      public DataFetchingEnvironment getEnvironment()
      Return the data fetching environment provided as an input.
    • getValue

      public Object getValue()
      Return the value returned by the DataFetcher, if any.
      See Also:
      • for the exception thrown by the data fetcher.