2.2.0 • Published 9 years ago

basictracer v2.2.0

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

basictracer-javascript NPM version build status Test coverage

The Javascript implementation of the BasicTracer referrence implementation

Installation

npm install --save basictracer

Usage

var tracer = require('basictracer')
tracer.setRecorder(function record(span) {
    log(span)
})

var span = tracer.startSpan('operationName')
span.tag('key', 'value')
span.log('read', {duration: 1000})
span.finish()

See tests for more example.

Data Model

type Span {
    operationName: String
    startTime: Number
    duration: Number
    tags: [Object]
    logs: [Array]

    traceId: Long
    spanId: Long
    parentId: String
    sampled: Boolean
    baggage: Object
}

Long type represent by long.js

License

MIT

2.2.0

9 years ago

2.0.0

9 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago