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

lightstep-opentelemetry-exporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightstep-opentelemetry-exporter

OpenTelemetry Exporter for LightStep

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

opentelemetry-exporter-js

LightStep Exporter for OpenTelemetry JS

Running in browser

  1. Please obtain a token first and edit example/index.js and then run
    npm run start:browser

Running in node

  1. Please obtain a token first and edit example/node.js and then run
    npm run start

Example in browser

'use strict';
import { SimpleSpanProcessor } from '@opentelemetry/tracing';
import { WebTracerProvider } from '@opentelemetry/web';
import { ZoneContextManager } from '@opentelemetry/context-zone';
const { LightstepExporter } = require('lightstep-opentelemetry-exporter');

const provider = new WebTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(new LightstepExporter({
  token: 'YOUR_TOKEN'
})));
provider.register({
  contextManager: new ZoneContextManager().enable()
});
const tracer = provider.getTracer('lightstep-exporter-example-web');

const main = tracer.startSpan('main');
main.end();

Example in node

'use strict';
const { NodeTracerProvider } = require('@opentelemetry/node');
const { SimpleSpanProcessor } = require('@opentelemetry/tracing');
const { LightstepExporter } = require('lightstep-opentelemetry-exporter');

const provider = new NodeTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(new LightstepExporter({
  token: 'YOUR_TOKEN'
})));
provider.register();
const tracer = provider.getTracer('lightstep-exporter-example-node');

const main = tracer.startSpan('main');
main.end();

Generating the proto

  1. Make sure you have googleapis and lightstep-tracer-common, if not run
make clone
  1. Generate sources
make proto

Release process using circleCI

  1. Run command (patch, minor, major)
make release RELEASE_TYPE=patch

FAQs

Package last updated on 12 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

  • 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