Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async{Amqp,Rabbit}Template not covered #55

Open
pschichtel opened this issue Aug 25, 2020 · 0 comments
Open

Async{Amqp,Rabbit}Template not covered #55

pschichtel opened this issue Aug 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@pschichtel
Copy link

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)
}
@ask4gilles ask4gilles added the enhancement New feature or request label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants