0.5.0 • Published 9 years ago

canela v0.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

npm.io

canela is a tracing tool for distributed applications

Badgers

NPM

Gitter(https://badges.gitter.im/Join Chat.svg) Dependency Status Build Status

What is canela, why does it exist

How to use

var canela = require('canela');

var options = {
  agentId: '', // [optional] this tracer agentID, if not passed, a random will be generated
  tags: ['*'], // [optional] an array of the active trace tags 
  emitter: <EventEmitter2 Obj>, //[optional] attacht the trace events to an existing emitter,
  active: true // if the trace captures are active or not  
}

var tracer = canela.createTracer(options)

var ee = tracer.emitter;

ee.on('trace', function (trace) {
  { 
    agentId: '82mu9d1416085771023',
    tag: 'a',
    traceId: 1,
    description: 'a trace',
    data: ,
    time: 1416085771028 
  }
});

tracer.capture({
  tag: 'a',
  id: 1,
  description: 'a trace', 
  data: { a: 5, b: { c: 6 } } 
});
0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

10 years ago

0.1.0

10 years ago