public abstract class TracingUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Message<T> |
addIncomingTrace(IncomingRabbitMQMessage<T> msg,
String queue,
List<String> attributeHeaders)
Creates a span based on any tracing metadata in the incoming message.
|
static void |
createOutgoingTrace(Message<?> message,
Map<String,Object> headers,
String exchange,
String routingKey,
List<String> attributeHeaders)
Creates a new outgoing message span message, and ensures span metadata is added to the
message headers.
|
static TracingMetadata |
getTracingMetaData(io.vertx.rabbitmq.RabbitMQMessage msg)
Extract tracing metadata from a received RabbitMQ message and return
it as
TracingMetadata. |
static void |
initialise() |
public static void initialise()
public static TracingMetadata getTracingMetaData(io.vertx.rabbitmq.RabbitMQMessage msg)
TracingMetadata.msg - the incoming RabbitMQ messageTracingMetadata instance, possibly empty but never nullpublic static <T> Message<T> addIncomingTrace(IncomingRabbitMQMessage<T> msg, String queue, List<String> attributeHeaders)
T - the message body typemsg - the incoming messageattributeHeaders - a list (possibly empty) of header names whose values (if present)
should be used as span attributespublic static void createOutgoingTrace(Message<?> message, Map<String,Object> headers, String exchange, String routingKey, List<String> attributeHeaders)
message - the source messageheaders - the outgoing headers, must be mutableexchange - the target exchangeroutingKey - the routing keyattributeHeaders - a list (possibly empty) of header names whose values (if present)
should be used as span attributesCopyright © 2018–2021 SmallRye. All rights reserved.