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 TypeMethodDescriptionReturn the data fetching environment provided as an input.getValue()
Return the value returned by theDataFetcher
, if any.Methods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValues, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, setContextualName, setError, setName, setParentObservation, toString
-
Method Details
-
getEnvironment
Return the data fetching environment provided as an input. -
getValue
Return the value returned by theDataFetcher
, if any.- See Also:
-
for the exception thrown by the data fetcher.
-