Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opencensus/exporter-zipkin

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/exporter-zipkin

OpenCensus Zipkin Exporter allows the user to send collected traces with OpenCensus Node.js to Zipkin.

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-71.69%
Maintainers
3
Weekly downloads
 
Created
Source

OpenCensus Zipkin Exporter for Node.js

Gitter chat

OpenCensus Zipkin Exporter allows the user to send collected traces with OpenCensus Node.js to Zipkin.

This project is still at an early stage of development. It's subject to change.

Installation

Install OpenCensus Zipkin Exporter with:

npm install @opencensus/nodejs
npm install @opencensus/exporter-zipkin

Usage

To use Zipkin as your exporter, first, download from any of the three available options on Quickstart: through Docker, on Java or manually compiling the source code. Tests were executed running Zipkin with Java, through the following commands on terminal:

wget -O zipkin.jar 'https://search.maven.org/remote_content?g=io.zipkin.java&a=zipkin-server&v=LATEST&c=exec'
java -jar zipkin.jar

Instance the exporter on your application and pass the options. For javascript:

var tracing = require('@opencensus/nodejs');
var zipkin = require('@opencensus/exporter-zipkin');

// Add your zipkin url and application name to the Zipkin options
var options = {
  url: 'your-zipkin-url',
  serviceName: 'your-application-name'
}
var exporter = new zipkin.Zipkin(options);

Similarly for Typescript:

import * as tracing from '@opencensus/nodejs';
import { Zipkin } from '@opencensus/exporter-zipkin';

// Add your zipkin url and application name to the Zipkin options
const options = {
  url: 'your-zipkin-url',
  serviceName: 'your-application-name'
}
const exporter = new Zipkin(options);

Now, register the exporter and start tracing.

tracing.start({'exporter': exporter});

or

tracing.registerExporter(exporter).start();

Keywords

FAQs

Package last updated on 22 Jun 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc