amqp-tracer
The trace/firehose feature of RabbitMQ is very useful for debugging, and it can be more than that.
Last updated 5 years ago by leonchen .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amqp-tracer 
SYNC missed versions from official npm registry.

node-amqp-tracer

The trace/firehose feature of RabbitMQ is very useful for debugging, and it can be more than that.

Install

make sure tracing is enabled for rabbitmq through rabbitmqctl(you will need to run this command everytime when rabbitmq server restarts):

rabbitmqctl trace_on

and then install this module:

npm install amqp-tracer

Usage

For all the available events, please check out tracer.coffee.

Tracer = require 'amqp-tracer'
# checkout config.defualt.json for config options such as rabbitmq host/port
config = {}
tracer = new Tracer(config)
tracer.on 'ready', (err) =>
  console.log "tracer is ready"

tracer.on 'error', (err) =>
  console.warn "tracer error:", err

tracer.on 'message.published', (data) ->
  console.log "published:", data.message

tracer.on 'message.delivered', (data) ->
  console.log "delivered:", data.message

Current Tags

  • 0.0.4                                ...           latest (5 years ago)

3 Versions

  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |