Hawkular-APM OpenTracing JavaScript Implementation
JavaScript Makefile
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test/unit
.babelrc
.eslintrc.json
.gitignore
.travis.yml
LICENSE
Makefile
README.md
index.js
package.json

README.md

Hawkular-APM OpenTracing JavaScript Implementation

Travis Jira Issues Join the chat at freenode:hawkular

NPM

This library is JavaScript implementation of OpenTracing API. It is intended to be used with Hawkular-APM server.

Install

$ npm install --save hawkular-apm-opentracing

Usage

const opentracing = require('opentracing');
const hawkularAPM = require('hawkular-apm-opentracing');

const tracer = new hawkularAPM.APMTracer({
    recorder: new hawkularAPM.ConsoleRecorder(),
    sampler: new hawkularAPM.AlwaysSample(),
    deploymentMetaData: new hawkularAPM.DeploymentMetaData('serviceName'),
});

opentracing.initGlobalTracer(tracer);

const span = opentracing.globalTracer().startSpan('name');
span.finish();

Develop

$ make test
$ make publish VERSION=(patch|minor|major)