public class OpenTracingTracerFactory extends JmsTracerFactory
| Constructor and Description |
|---|
OpenTracingTracerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static JmsTracer |
create(io.opentracing.Tracer tracer)
Creates a JmsTracer wrapping a provided Open Tracing tracer instance
previously created by the application.
|
static JmsTracer |
create(io.opentracing.Tracer tracer,
boolean closeUnderlyingTracer)
As
create(Tracer), but providing control over whether the given Tracer
has its close method called when the returned JmsTracer is closed during
Connection.close(). |
JmsTracer |
createTracer(URI remoteURI,
String name) |
create, findTracerFactorypublic static JmsTracer create(io.opentracing.Tracer tracer)
JmsConnectionFactory.setTracing(String),
which both utilise the GlobalTracer.
The returned JmsTracer will no-op when its close method is called during
Connection.close() closure, to allow using the given Tracer with multiple
connections and elsewhere in the application. Equivalent to calling
#create(Tracer, false)tracer - The Open Tracing tracer to usepublic static JmsTracer create(io.opentracing.Tracer tracer, boolean closeUnderlyingTracer)
create(Tracer), but providing control over whether the given Tracer
has its close method called when the returned JmsTracer is closed during
Connection.close().tracer - The Open Tracing tracer to usecloseUnderlyingTracer - Whether to close the underlying tracer during Connection.close()public JmsTracer createTracer(URI remoteURI, String name) throws Exception
createTracer in class JmsTracerFactoryExceptionCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.