Skip to content

Async{Amqp,Rabbit}Template not covered #55

Open
@pschichtel

Description

@pschichtel

Currently the Async* variants of the templates are not covered by this integration.

I worked around this using this:

private fun traceMessage(exchange: Exchange, routingKey: String, message: Message): Message {
    val traceHelper = RabbitMqSendTracingHelper(tracer, messageConverter, rabbitMqSpanDecorator)
    return traceHelper.doWithTracingHeadersMessage(exchange.name, routingKey, message, ::identity)
}

and then

val listenable = asyncTemplate.convertSendAndReceive<ResponseType>(exchange.name, routingKey, message) {
    traceMessage(exchange, routingKey, it)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions