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 ([email protected]), Phillip Kruger ([email protected])
-
-
Constructor Summary
Constructors Constructor Description TracingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterDataFetch(io.smallrye.graphql.api.Context context)
void
afterExecute(io.smallrye.graphql.api.Context context)
void
beforeDataFetch(io.smallrye.graphql.api.Context context)
void
beforeExecute(io.smallrye.graphql.api.Context context)
void
errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)
void
errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
String
getConfigKey()
-
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:
beforeExecute
in interfaceEventingService
-
afterExecute
public void afterExecute(io.smallrye.graphql.api.Context context)
- Specified by:
afterExecute
in interfaceEventingService
-
errorExecute
public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
- Specified by:
errorExecute
in interfaceEventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
beforeDataFetch
in interfaceEventingService
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
afterDataFetch
in interfaceEventingService
-
errorDataFetch
public void errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)
- Specified by:
errorDataFetch
in interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKey
in interfaceEventingService
-
-