Name: raven-weapp
Owner: ??
Description: Sentry SDK for WeApp
Created: 2017-09-21 06:29:33.0
Updated: 2018-05-21 06:37:21.0
Pushed: 2017-12-06 02:48:53.0
Size: 162
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
????????sentry??raven???????????
???????????node_modules?????????npm???????????raven-weapp/dist??????????????????app.js???????
Raven = require('./utils/raven-weapp/build/raven')
??Bower??raven-weapp????
Raven = require('./bower_components/raven-weapp/build/raven')
n.config('https://xxx@crash.youzan.com/x', options).install()
?app?onLaunch????(?)?options?????????????
ons = {
release: '???????'?
environment: '???production????',
allowDuplicates: true, // ??????????
sampleRate: 0.5 // ???
???????????????
????raven??????????
SDKversion: '????????',
WXversion: '????',
device: '????',
network: '????',
system: '????',
????Raven.setUserContext(context)??Raven.setExtraContext(context)???????kdtId?userId??
console???????????
wx.request????????????????????????????????????????
n.captureBreadcrumb({
tegory: 'ajax',
ta: {
method: 'get',
url: 'weapp.showcase.page/1.0.0/get',
status_code: 200
ui?????????
???????????
??message?exception???
??Raven.captureMessage(msg, option)???????????ajax????
??uncaught exception???????????msg???app?onError???onError????????
ror(msg) {
Raven.captureException(msg, {
level: 'error'
})