Socket
Book a DemoInstallSign in
Socket

zipkin-instrumentation-gotjs

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipkin-instrumentation-gotjs

Interceptor for HTTP clients using the Got library

0.22.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

zipkin

FAQs

Package last updated on 04 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.