RabbitMQ Tracing Informations are missing
See original GitHub issueDescribe the bug I want to use a sleuth with RabbitMQ messaging, but I can’t see the tracing informations. I generated a demo application with spring start, and add some minimal functionality, to produce a message to rabbitmq.
Sample Here are the dependencies
<properties>
<java.version>15</java.version>
<spring-cloud.version>2020.0.0</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
</dependency>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
application.yml
spring:
# Cloud Stream
cloud:
stream:
rabbit.bindings:
ipnMessageSupplier-out-0:
producer:
autoBindDlq: true
bindingRoutingKey: simplepay
routingKeyExpression: '''simplepay'''
bindings:
ipnMessageSupplier-out-0:
destination: financial
content-type: application/json
producer.requiredGroups: simplepay.financial
function:
definition: ipnMessageSupplier
# RabbitMQ
rabbitmq:
host: 127.0.0.1
port: 5672
username: root
password: root
and the application java
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@Bean
Supplier<String> ipnMessageSupplier() {
return () -> "DEMO";
}
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Troubleshooting Network Connectivity - RabbitMQ
Client connections can be inspected using the management UI. It is also possible to inspect all TCP connections of a node and their...
Read more >Logging - RabbitMQ
Different outputs can have different log levels. For example, the console output can log all messages including debug information while the file output...
Read more >Reliability Guide - RabbitMQ
When a connection fails, messages may be in transit between client and server - they may be in the middle of being decoded...
Read more >rabbitmqctl(8) — RabbitMQ
Diagnostic information is displayed if connection failed, the target node was not running, or rabbitmqctl could not authenticate to the target node ...
Read more >File and Directory Locations - RabbitMQ
See Configuration guide for more information. RABBITMQ_CONFIG_FILES, Path to a directory of RabbitMQ configuration files in the new-style (.conf) format.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jmecsei I think having an async client that hides even the blocking queue and you just need to call send on would be the best but I’m not familiar with the reasoning behind the current solution. I’m going to ask around next week to see what can we do.
@jmecsei I’m closing this in favor of the followings: https://github.com/spring-cloud/spring-cloud-stream/issues/2102 https://github.com/spring-cloud/spring-cloud-stream/issues/2103 https://github.com/spring-cloud/spring-cloud-stream/issues/2104