Class GraphQlMetricsInstrumentation
java.lang.Object
graphql.execution.instrumentation.SimpleInstrumentation
org.springframework.boot.actuate.metrics.graphql.GraphQlMetricsInstrumentation
- All Implemented Interfaces:
graphql.execution.instrumentation.Instrumentation
public class GraphQlMetricsInstrumentation
extends graphql.execution.instrumentation.SimpleInstrumentation
Micrometer-based
SimpleInstrumentation
.- Since:
- 2.7.0
- Author:
- Brian Clozel
-
Field Summary
Fields inherited from class graphql.execution.instrumentation.SimpleInstrumentation
INSTANCE
-
Constructor Summary
ConstructorDescriptionGraphQlMetricsInstrumentation
(io.micrometer.core.instrument.MeterRegistry registry, GraphQlTagsProvider tagsProvider, AutoTimer autoTimer) -
Method Summary
Modifier and TypeMethodDescriptiongraphql.execution.instrumentation.InstrumentationContext<graphql.ExecutionResult>
beginExecution
(graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.execution.instrumentation.InstrumentationState state) graphql.execution.instrumentation.InstrumentationState
createState
(graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters parameters) graphql.schema.DataFetcher<?>
instrumentDataFetcher
(graphql.schema.DataFetcher<?> dataFetcher, graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters parameters, graphql.execution.instrumentation.InstrumentationState state) Methods inherited from class graphql.execution.instrumentation.SimpleInstrumentation
beginExecuteOperation, beginExecution, beginExecutionStrategy, beginField, beginFieldFetch, beginParse, beginValidation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface graphql.execution.instrumentation.Instrumentation
beginExecuteOperation, beginExecutionStrategy, beginField, beginFieldComplete, beginFieldComplete, beginFieldFetch, beginFieldListComplete, beginFieldListComplete, beginParse, beginSubscribedFieldEvent, beginSubscribedFieldEvent, beginValidation, createState, instrumentDataFetcher, instrumentDocumentAndVariables, instrumentDocumentAndVariables, instrumentExecutionContext, instrumentExecutionContext, instrumentExecutionInput, instrumentExecutionInput, instrumentExecutionResult, instrumentExecutionResult, instrumentSchema, instrumentSchema
-
Constructor Details
-
GraphQlMetricsInstrumentation
public GraphQlMetricsInstrumentation(io.micrometer.core.instrument.MeterRegistry registry, GraphQlTagsProvider tagsProvider, AutoTimer autoTimer)
-
-
Method Details
-
createState
public graphql.execution.instrumentation.InstrumentationState createState(graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters parameters) -
beginExecution
public graphql.execution.instrumentation.InstrumentationContext<graphql.ExecutionResult> beginExecution(graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.execution.instrumentation.InstrumentationState state) -
instrumentDataFetcher
public graphql.schema.DataFetcher<?> instrumentDataFetcher(graphql.schema.DataFetcher<?> dataFetcher, graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters parameters, graphql.execution.instrumentation.InstrumentationState state)
-