@sentry/opentracing

Sentry OpenTracing SDK

Usage no npm install needed!

<script type="module">
  import sentryOpentracing from 'https://cdn.skypack.dev/@sentry/opentracing';
</script>

README


Sentry JavaScript OpenTracing API

npm version npm dm npm dt typedoc

Links

General

This package implements the OpenTracing API and provides an integration that can be used by our other SDKs.

import * as Sentry from '@sentry/browser';
import * as OpenTracing from '@sentry/opentracing';

const ot = new OpenTracing.Integration(ENV.traceId);

Sentry.init({
  debug: true,
  dsn: ENV.sentry.dsn,
  integrations: [ot],
  beforeSend(event) {
    console.log(event);
    return event;
  },
});