apm-agent-java icon indicating copy to clipboard operation
apm-agent-java copied to clipboard

Add option to make routing-key part of RabbitMQ transaction/span names

Open JonasKunz opened this issue 1 year ago • 1 comments

It is possible to receive and send messaged directly to queues instead of exchanges, see this guide for example.

We currently only use the exchange for naming transactions and client spans, which is sub optimal in this case. We should provide an option to use the RabbitMQ routingKey instead.

In my opinion we should offer an enum-like configuration option (e.g. rabbitmq_naming_mode) to do this. This way we won't end up with multiple boolean options in case we see the need to further customize the naming scheme.

JonasKunz avatar Nov 07 '23 08:11 JonasKunz

Support for the non-spring client has been implemented via #3636, the option is not yet supported for spring.

JonasKunz avatar Jun 04 '24 10:06 JonasKunz