Skip to content

Latest commit

 

History

History

zipkin-instrumentation-got

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

zipkin-instrumentation-got

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 => ...);