Class TracerWebService
java.lang.Object
org.eclipse.microprofile.opentracing.tck.application.TracerWebService
- Author:
- Pavol Loffay
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear accumulated spans in the Tracer.io.opentracing.TracerGet details about completed spans.
-
Field Details
-
REST_TRACER_SERVICE_PATH
Web service exposing tracer related endpoints.- See Also:
-
REST_GET_TRACER
Web service endpoint for the getTracer call.- See Also:
-
REST_CLEAR_TRACER
Web service endpoint for the clearTracer call.- See Also:
-
-
Constructor Details
-
TracerWebService
public TracerWebService()
-
-
Method Details
-
getTracer
@GET @Path("getTracer") @Produces("application/json") public io.opentracing.Tracer getTracer() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionGet details about completed spans. Returns aTestTracerwhich has information on the spans.- Returns:
- Injected tracer
- Throws:
SecurityException- Reflection issuesNoSuchMethodException- Reflection issuesInvocationTargetException- Reflection issuesIllegalArgumentException- Reflection issuesIllegalAccessException- Reflection issues
-
clearTracer
@DELETE @Path("clearTracer") public void clearTracer() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityExceptionClear accumulated spans in the Tracer.- Throws:
IllegalAccessException- Reflection issuesIllegalArgumentException- Reflection issuesInvocationTargetException- Reflection issuesNoSuchMethodException- Reflection issuesSecurityException- Reflection issues
-