@SPI
public interface TracerFactory
extends java.lang.AutoCloseable
Tracer
s of signal messages.
Each tracer is created for a single signal and should not be reused.
Implementations may choose to perform I/O operations (i.e. send traces via network) on
close()
. It is expected in general that each call to TracerFactory.trace(io.spine.server.ContextSpec, io.spine.core.Signal<?, ?, ?>)
results in some
tracing data produced, however, implementations may ignore some signals.
Modifier and Type | Method and Description |
---|---|
Tracer |
trace(ContextSpec context,
io.spine.core.Signal<?,?,?> signalMessage)
Creates a new instance of
Tracer for the given signal. |
Tracer trace(ContextSpec context, io.spine.core.Signal<?,?,?> signalMessage)
Tracer
for the given signal.
The tracer will be closed externally once it is no longer needed.
context
- specification of the Bounded Context for signal of which the tracer is createdsignalMessage
- the message to traceTracer