GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pinpoint/plugins/rabbitmq at master · coder-java-caicai/pinpoint

Expand file tree

/

rabbitmq

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

rabbitmq

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Pinpoint RabbitMQ Plugin

Tracing custom Consumers

RabbitMQ plugin traces Consumer.handleDelivery(...) implementations to record calls made when a basic.deliver is received by a consumer.

This is done automatically for consumers implemented in RabbitMQ Java Client (DefaultConsumer, QueueingConsumer) or in Spring-rabbit (BlockingQueueConsumer$InternalConsumer, RabbitTemplate$TemplateConsumer).

However, if you implemented your own Consumer and registered to a channel like below, you must tell the agent what these consumers are unless the consumer explicitly calls super.handleDelivery(...).

Consumer customConsumer = new DefaultConsumer(channel) {
    @Override
    public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException {
        // code
    }
};
channel.basicConsume(queue, customConsumer); 

To trace such consumers, please configure the following option in pinpoint.config with the fully qualified class name of the consumer.

profiler.rabbitmq.client.consumer.classes=

Excluding exchanges

If you would like to exclude certain exchanges from being traced, please configure the following option in pinpoint.config.

profiler.rabbitmq.client.exchange.exclude=

Supported libraries

The plugin has been tested on the following libraries.

com.rabbitmq:amqp-client - 2.7.0+
org.springframework.amqp:spring-rabbit - 1.3.3+

(Pinpoint 1.7.2 supports up to org.springframework.amqp:spring-rabbit 1.3.3 ~ 1.7.2, 2.0.1 and 2.0.2)

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.