Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luxchanlu/moleculer-opentracing

DataDog APM integration
https://github.com/luxchanlu/moleculer-opentracing

javascript moleculer moleculerjs opentracing

Last synced: 23 days ago
JSON representation

DataDog APM integration

Awesome Lists containing this project

README

        

# moleculer-opentracing

[![Build Status](https://travis-ci.org/YourSoftRun/moleculer-opentracing.svg?branch=master)](https://travis-ci.org/YourSoftRun/moleculer-opentracing)
[![Coverage Status](https://coveralls.io/repos/github/YourSoftRun/moleculer-opentracing/badge.svg?branch=master)](https://coveralls.io/github/YourSoftRun/moleculer-opentracing?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e535fb380a5b4c42ab060f1049c52d20)](https://www.codacy.com/app/Hugome/moleculer-opentracing?utm_source=github.com&utm_medium=referral&utm_content=YourSoftRun/moleculer-opentracing&utm_campaign=Badge_Grade)
[![Maintainability](https://api.codeclimate.com/v1/badges/704fc5230cfe2d6a0a3c/maintainability)](https://codeclimate.com/github/YourSoftRun/moleculer-opentracing/maintainability)
[![David](https://img.shields.io/david/YourSoftRun/moleculer-opentracing.svg)](https://david-dm.org/YourSoftRun/moleculer-opentracing)
[![Known Vulnerabilities](https://snyk.io/test/github/YourSoftRun/moleculer-opentracing/badge.svg)](https://snyk.io/test/github/YourSoftRun/moleculer-opentracing)

[![Downloads](https://img.shields.io/npm/dm/moleculer-opentracing.svg)](https://www.npmjs.com/package/moleculer-opentracing)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FYourSoftRun%2Fmoleculer-opentracing.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FYourSoftRun%2Fmoleculer-opentracing?ref=badge_shield)

## How to use it
You have to use it with a compatible opentracing tracer :
```js
const OpenTracingMixin = require('moleculer-opentracing')
const { Tracer } = require('opentracing')

module.exports = {
name: 'opentracing',
mixins: [OpenTracingMixin(new Tracer())]
}
```
Exemple with datadog :
```js
const OpenTracingMixin = require('moleculer-opentracing')
const Tracer = require('dd-trace').init()

module.exports = {
name: 'datadog',
mixins: [OpenTracingMixin(Tracer)]
}
```