Class DefaultGraphQlTagsProvider

java.lang.Object
org.springframework.boot.actuate.metrics.graphql.DefaultGraphQlTagsProvider
All Implemented Interfaces:
GraphQlTagsProvider

public class DefaultGraphQlTagsProvider extends Object implements GraphQlTagsProvider
Default implementation for GraphQlTagsProvider.
Since:
2.7.0
Author:
Brian Clozel
  • Constructor Details

    • DefaultGraphQlTagsProvider

      public DefaultGraphQlTagsProvider(List<GraphQlTagsContributor> contributors)
    • DefaultGraphQlTagsProvider

      public DefaultGraphQlTagsProvider()
  • Method Details

    • getExecutionTags

      public Iterable<io.micrometer.core.instrument.Tag> getExecutionTags(graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.ExecutionResult result, Throwable exception)
      Specified by:
      getExecutionTags in interface GraphQlTagsProvider
    • getErrorTags

      public Iterable<io.micrometer.core.instrument.Tag> getErrorTags(graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.GraphQLError error)
      Specified by:
      getErrorTags in interface GraphQlTagsProvider
    • getDataFetchingTags

      public Iterable<io.micrometer.core.instrument.Tag> getDataFetchingTags(graphql.schema.DataFetcher<?> dataFetcher, graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters parameters, Throwable exception)
      Specified by:
      getDataFetchingTags in interface GraphQlTagsProvider