GitXplorerGitXplorer
d

canela

public
8 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
57f66dc00f18fd065810dc1149c80aa44542280b

Update README.md

ddaviddias committed 10 years ago
Unverified
35aef47fbbb3b6ed5db1ddc550019048d8d60b62

add inesc-id badge

ddaviddias committed 10 years ago
Unverified
0456e7f7162d91a2c039bccbe5006eb1a4676d4a

fix jshint

ddaviddias committed 10 years ago
Unverified
c8de5882ed2381f86fc81bbfc60fde0e7e8b41c2

Release v0.5.0.

ddaviddias committed 10 years ago
Unverified
c0d8df2fc275bb1f2fac73eff79b30ef7f50c8e0

revamp structure, add coverage and codestule

ddaviddias committed 10 years ago
Unverified
489116c64b8cff8d3ddc25c2f86633f2bfee4361

Release v0.4.0.

ddaviddias committed 10 years ago

README

The README file for this repository.

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 } } 
});