How to use the @sentry/tracing.Integrations function in @sentry/tracing

To help you get started, we’ve selected a few @sentry/tracing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethereum-optimism / optimism / packages / data-transport-layer / src / services / server / service.ts View on Github external
private _initSentry() {
    Sentry.init({
      dsn: this.options.sentryDsn,
      release: this.options.release,
      environment: this.options.ethNetworkName,
      integrations: [
        new Sentry.Integrations.Http({ tracing: true }),
        new Tracing.Integrations.Express({
          app: this.state.app,
        }),
      ],
      tracesSampleRate: this.options.sentryTraceRate,
    })
    this.state.app.use(Sentry.Handlers.requestHandler())
    this.state.app.use(Sentry.Handlers.tracingHandler())
  }

@sentry/tracing

Sentry Performance Monitoring Package

MIT
Latest version published 6 months ago

Package Health Score

91 / 100
Full package analysis