No description or website provided.
JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
githooks/pre-commit
resources
src
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.travis.yml
History.md
LICENSE
Readme.md
package.json

Readme.md

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.configure({
    sampler: mySampler,
    recorder: myRecorder,
})

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

See tests for more example.

Data Model

type BasicSpan {
    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