Class OpenTracingTracerFactory
java.lang.Object
org.apache.qpid.jms.tracing.JmsTracerFactory
org.apache.qpid.jms.tracing.opentracing.OpenTracingTracerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JmsTracercreate(io.opentracing.Tracer tracer) Creates a JmsTracer wrapping a provided Open Tracing tracer instance previously created by the application.static JmsTracercreate(io.opentracing.Tracer tracer, boolean closeUnderlyingTracer) Ascreate(Tracer), but providing control over whether the given Tracer has its close method called when the returned JmsTracer is closed duringConnection.close().createTracer(URI remoteURI, String name) Methods inherited from class org.apache.qpid.jms.tracing.JmsTracerFactory
create, findTracerFactory
-
Constructor Details
-
OpenTracingTracerFactory
public OpenTracingTracerFactory()
-
-
Method Details
-
create
Creates a JmsTracer wrapping a provided Open Tracing tracer instance previously created by the application. Used for programmatic creation of JmsTracer to explicitly set on a ConnectionFactory when not using the jms.tracing URI option, orJmsConnectionFactory.setTracing(String), which both utilise theGlobalTracer. The returned JmsTracer will no-op when its close method is called duringConnection.close()closure, to allow using the given Tracer with multiple connections and elsewhere in the application. Equivalent to calling#create(Tracer, false)- Parameters:
tracer- The Open Tracing tracer to use- Returns:
- a JmsTracer instance using the provided OpenTracing tracer.
-
create
Ascreate(Tracer), but providing control over whether the given Tracer has its close method called when the returned JmsTracer is closed duringConnection.close().- Parameters:
tracer- The Open Tracing tracer to usecloseUnderlyingTracer- Whether to close the underlying tracer duringConnection.close()- Returns:
- a JmsTracer instance using the provided OpenTracing tracer.
-
createTracer
- Specified by:
createTracerin classJmsTracerFactory- Throws:
Exception
-