question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RabbitMQ Tracing Informations are missing

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jonatan-ivanovcommented, Jan 27, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found