zipkin-instrumentation-gotjs
TypeScript icon, indicating that this package has built-in type declarations

0.22.0 • Public • Published

zipkin-instrumentation-gotjs

npm

This library will wrap the Got client.

Usage

const got = require('got');
const {Tracer} = require('zipkin');
const wrapGot = require('zipkin-instrumentation-got');
 
const localServiceName = 'service-a'; // name of this application
const tracer = new Tracer({ctxImpl, recorder, localServiceName});
 
const remoteServiceName = 'youtube';
const zipkinGot = wrapGot(got, {tracer, remoteServiceName});
 
// Your application code here
zipkinGot('http://www.youtube.com/').then(res => res.body).then(data => ...);

Readme

Keywords

Package Sidebar

Install

npm i zipkin-instrumentation-gotjs

Weekly Downloads

2

Version

0.22.0

License

Apache-2.0

Unpacked Size

16.7 kB

Total Files

11

Last publish

Collaborators

  • openzipkin