Socket
Socket
Sign inDemoInstall

@opencensus/exporter-zipkin

Package Overview
Dependencies
10
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
492
decreased by-13.38%
Maintainers
6
Install size
0.984 MB
Created
Weekly downloads
 

Changelog

Source

0.1.0 - 2021-07-27

  • chore(stackdriver): upgrade google-auth-library, drop node8 (#887)
  • chore: upgrade gRPC, ts to newest compatible version (#907) BREAKING CHANGE: upgrade to TypeScript 3.x
  • chore(deps): pin googleapis, lock file maintenance (#928)

Readme

Source

OpenCensus Zipkin Trace Exporter

Gitter chat

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

Zipkin is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in microservice architectures. It manages both the collection and lookup of this data.

The library is in alpha stage and the API is 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:

curl -sSL https://zipkin.io/quickstart.sh | bash -s
java -jar zipkin.jar

Instance the exporter on your application and pass the options, it must contain a service name and, optionaly, an URL. If no URL is passed, http://localhost:9411/api/v2/spans is used as default.

For javascript:

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

// Add your zipkin url (ex http://localhost:9411/api/v2/spans)
// and application name to the Zipkin options
const options = {
  url: 'your-zipkin-url',
  serviceName: 'your-application-name'
}
const exporter = new zipkin.ZipkinTraceExporter(options);

Similarly for Typescript:

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

// Add your zipkin url (ex http://localhost:9411/api/v2/spans)
// 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();

Viewing your traces:

Please visit the Zipkin UI endpoint http://localhost:9411

Keywords

FAQs

Last updated on 27 Jul 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc