Package io.smallrye.graphql.cdi.metrics
Class MetricsService
- java.lang.Object
-
- io.smallrye.graphql.cdi.metrics.MetricsService
-
- All Implemented Interfaces:
EventingService
@Priority(100) public class MetricsService extends Object implements EventingService
A wrapper that chooses an underlying service implementation for metrics and delegates to that implementation. The implementation is chosen based on detecting the availability of particular metrics APIs. Right now, it supports Micrometer and MP Metrics 3.x, while Micrometer is preferred.
-
-
Constructor Summary
Constructors Constructor Description MetricsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDataFetch(io.smallrye.graphql.api.Context context)voidbeforeDataFetch(io.smallrye.graphql.api.Context context)io.smallrye.graphql.schema.model.OperationcreateOperation(io.smallrye.graphql.schema.model.Operation operation)StringgetConfigKey()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.graphql.spi.EventingService
afterExecute, beforeExecute, beforeGraphQLBuild, beforeInvoke, beforeSchemaBuild, errorDataFetch, errorDataFetch, errorExecute, errorExecute, overrideJsonbConfig
-
-
-
-
Method Detail
-
createOperation
public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation)
- Specified by:
createOperationin interfaceEventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
beforeDataFetchin interfaceEventingService
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
afterDataFetchin interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKeyin interfaceEventingService
-
-