Class TracingService

java.lang.Object
io.smallrye.graphql.cdi.tracing.TracingService
All Implemented Interfaces:
io.smallrye.graphql.spi.EventingService

@Priority(0) public class TracingService extends Object implements io.smallrye.graphql.spi.EventingService
Listening for operation start/end event and create traces from it
Author:
Jan Martiska (jmartisk@redhat.com), Phillip Kruger (phillip.kruger@redhat.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterExecute(io.smallrye.graphql.api.Context context)
     
    void
    beforeExecute(io.smallrye.graphql.api.Context context)
     
    void
    errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
     
     

    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

    afterDataFetch, beforeDataFetch, beforeGraphQLBuild, beforeInvoke, beforeSchemaBuild, createOperation, errorDataFetch, errorDataFetch, errorExecute, overrideJsonbConfig
  • Constructor Details

    • TracingService

      public TracingService()
  • Method Details

    • beforeExecute

      public void beforeExecute(io.smallrye.graphql.api.Context context)
      Specified by:
      beforeExecute in interface io.smallrye.graphql.spi.EventingService
    • afterExecute

      public void afterExecute(io.smallrye.graphql.api.Context context)
      Specified by:
      afterExecute in interface io.smallrye.graphql.spi.EventingService
    • errorExecute

      public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
      Specified by:
      errorExecute in interface io.smallrye.graphql.spi.EventingService
    • getConfigKey

      public String getConfigKey()
      Specified by:
      getConfigKey in interface io.smallrye.graphql.spi.EventingService