1.0.2 • Published 4 years ago
@xlvoice/sentry-report v1.0.2
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: {
}
})