Package io.smallrye.graphql.cdi.tracing
Class TracingService
- java.lang.Object
-
- io.smallrye.graphql.cdi.tracing.TracingService
-
- All Implemented Interfaces:
EventingService
@Priority(0) public class TracingService extends Object implements EventingService
Listening for event and create traces from it FIXME: currently, this places the work of all fetchers inside an operation (execution) under the same parent, which is the execution itself. It would be cool to define some reasonable hierarchy between fetchers, so for example, when evaluating a source method requires evaluating another source method, the second one would be a child of the first one.- Author:
- Jan Martiska (jmartisk@redhat.com), Phillip Kruger (phillip.kruger@redhat.com)
-
-
Constructor Summary
Constructors Constructor Description TracingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDataFetch(io.smallrye.graphql.api.Context context)voidafterExecute(io.smallrye.graphql.api.Context context)voidbeforeDataFetch(io.smallrye.graphql.api.Context context)voidbeforeExecute(io.smallrye.graphql.api.Context context)voiderrorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)voiderrorExecute(io.smallrye.graphql.api.Context context, Throwable t)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
beforeGraphQLBuild, beforeInvoke, beforeSchemaBuild, createOperation, errorDataFetch, errorExecute, overrideJsonbConfig
-
-
-
-
Method Detail
-
beforeExecute
public void beforeExecute(io.smallrye.graphql.api.Context context)
- Specified by:
beforeExecutein interfaceEventingService
-
afterExecute
public void afterExecute(io.smallrye.graphql.api.Context context)
- Specified by:
afterExecutein interfaceEventingService
-
errorExecute
public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)- Specified by:
errorExecutein 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
-
errorDataFetch
public void errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)- Specified by:
errorDataFetchin interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKeyin interfaceEventingService
-
-