1.0.2 • Published 4 years ago

@xlvoice/sentry-report v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

sentry report sdk

Install

# npm
npm install @xlvoice/sentry-report --save

# yarn
yarn add @xlvoice/sentry-report --save

Usage

import { initSentry, report } from '@xlvoice/sentry-report'

/**
 * init before report
 */
initSentry({
  dsn: '',
  release: '',
  environment: '',
  sampleRate: 0.1,
  tracesSampleRate: 0.1,
  contexts: {
  },
  user: {
  },
  tags: {
  }
})

/**
 * report
 */
report({
  event: '',
  attribute: '',
  msg: '',
  extra: {
  }
})