@leapwallet/sentry-config

3.4.0 • Public • Published

sentry-config

Usage

yarn add @leapwallet/sentry-config

Browser Based Environment

import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/browser';

Sentry.init(
  createSentryConfig({
    release: '1.0.0',
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);

Extension Based Environment

import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/extension';

Sentry.init(
  createSentryConfig({
    release: '1.0.0',
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);

Mobile Based Environment

import * as Sentry from '@sentry/react-native';
import { createSentryConfigMobile } from '@leapwallet/sentry-config/dist/mobile';

Sentry.init(
  createSentryConfigMobile({
    // release: '1.0.0', (by default taken as version and build no.)
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);

export default Sentry.wrap(App);

Development

Clone this repository and run yarn to install dependencies.

To actively develop this package, run

yarn build:watch

It uses microbundle to build the package and watch for changes.

Readme

Keywords

none

Package Sidebar

Install

npm i @leapwallet/sentry-config

Weekly Downloads

0

Version

3.4.0

License

none

Unpacked Size

120 kB

Total Files

40

Last publish

Collaborators

  • leapwallet