@Service(name="opentracing-service") public class OpenTracingService extends Object implements EventListener
EventListener.Event<T>| Constructor and Description |
|---|
OpenTracingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
event(EventListener.Event<?> event)
Process a Glassfish/Payara event
|
String |
getApplicationName(InvocationManager invocationManager)
Gets the application name from the invocation manager.
|
String |
getApplicationName(InvocationManager invocationManager,
javax.interceptor.InvocationContext invocationContext)
Gets the application name from the invocation manager.
|
io.opentracing.Tracer |
getTracer(String applicationName)
Gets the tracer instance for the given application, or creates one if there isn't one.
|
boolean |
isEnabled()
Pass-through method that checks if Request Tracing is enabled.
|
public void event(EventListener.Event<?> event)
EventListenerevent in interface EventListenerpublic io.opentracing.Tracer getTracer(String applicationName)
applicationName - The name of the application to get or create the Tracer forpublic boolean isEnabled()
public String getApplicationName(InvocationManager invocationManager)
invocationManager - The invocation manager to get the application name frompublic String getApplicationName(InvocationManager invocationManager, javax.interceptor.InvocationContext invocationContext)
invocationManager - The invocation manager to get the application name frominvocationContext - The context of the current invocationCopyright © 2019. All rights reserved.