Class DefaultDataFetcherObservationConvention
java.lang.Object
org.springframework.graphql.observation.DefaultDataFetcherObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<DataFetcherObservationContext>
,DataFetcherObservationConvention
public class DefaultDataFetcherObservationConvention
extends Object
implements DataFetcherObservationConvention
Default implementation for a
DataFetcherObservationConvention
extracting information from a DataFetcherObservationContext
.- Since:
- 1.1.0
- Author:
- Brian Clozel
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
errorType
(DataFetcherObservationContext context) protected io.micrometer.common.KeyValue
fieldName
(DataFetcherObservationContext context) protected io.micrometer.common.KeyValue
fieldPath
(DataFetcherObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
outcome
(DataFetcherObservationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.graphql.observation.DataFetcherObservationConvention
supportsContext
-
Constructor Details
-
DefaultDataFetcherObservationConvention
public DefaultDataFetcherObservationConvention() -
DefaultDataFetcherObservationConvention
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<DataFetcherObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<DataFetcherObservationContext>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(DataFetcherObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<DataFetcherObservationContext>
-
outcome
-
fieldName
-
errorType
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(DataFetcherObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<DataFetcherObservationContext>
-
fieldPath
-