Observe events happening inside a domain

npm install domain-observer
8 downloads in the last week
32 downloads in the last month

domain-observer Build Status

Observe events happening inside a domain.

Works for HTTP clients and server.


$ npm install domain-observer


var observer = require('domain-observer');

observer.on('created', function(domain) {
  console.log('someone created a domain', d);

  ].forEach(function(event) {
    domain.on(event, function(o, t) {
      console.log('%s event happened on object %j, on time %d (microseconds)',
          event, o, t);
npm loves you