我叫李志遥,花名至尧。90后,狮子座。
目前我蚂蚁金服工作,是一名前端工程师。
平时会关注软件技术的发展,喜欢用技术将想法落地的快感。
热爱跳舞(Urban,目前处于入门水平),希望能遇到同在互联网行业且热爱舞蹈的人,然后一起做些有趣的「互联网 + 舞蹈」的事情。
喜欢露营。装备齐全可随时发车。
是一个从 180 斤减到 136 斤的胖子,目前仍在减肥中。
希望我们可以成为朋友。🍻
👇 我的个人公众号,欢迎关注。
Sentry 小程序/小游戏 SDK:用于小程序/小游戏平台的 Sentry SDK(目前支持微信、字节跳动、支付宝、钉钉、QQ、百度小程序,微信、QQ 小游戏)
Home Page: https://www.npmjs.com/package/sentry-miniapp
License: BSD 3-Clause "New" or "Revised" License
这边uniapp H5端调试总会出现异常API onMemoryWarning
is not yet implemented
Error/game/js/sentry-miniapp.wx.min.js in Function.
errorNon-Error exception captured with keys: message, stack
附加数据(serialized)是带有有堆栈信息
https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onUnhandledRejection.html
微信小程序基础库2.10已经正式支持了onUnhandledRejection
,我看这部分代码现在注释掉了,应该可以弄回来了
UnhandledPromiseRejectionWarning: Error: sentry-miniapp 暂不支持此平台
您好!想了解下上面的问题。当前正在面临技术选型,已经接入 sentry ,想再接入微信小程序。
miniprogram/miniprogram_npm/sentry-miniapp/helpers.d.ts:28:96 - error TS2304: Cannot find name 'Event'.
28 export declare function breadcrumbEventHandler(eventName: string, debounce?: boolean): (event: Event) => void;
miniprogram/miniprogram_npm/sentry-miniapp/helpers.d.ts:34:57 - error TS2304: Cannot find name 'Event'.
34 export declare function keypressEventHandler(): (event: Event) => void;
版本: 0.12.0
npm安装
微信小程序原生开发(Typescript)
taro版本2.2.16
在百度开发者工具里异常可以正常上报,但是在真机里不能上报(偶尔可以上报,目前没有总结出规律)
复现步骤:
1.taro init app
2.在index页面抛出异常
3.通过百度开发者工具预览扫码
RT
uniapp 小程序报错
如题。
hirdScriptError
utils_1.getGlobalObject is not a function
TypeError: utils_1.getGlobalObject is not a function
at Object../node_modules/sentry-miniapp/dist/integrations/breadcrumbs.js (http://127.0.0.1:36208/appservice/app.js:15271:22)
at webpack_require (http://127.0.0.1:36208/appservice/runtime.js:226:23)
at Object../node_modules/sentry-miniapp/dist/integrations/index.js (http://127.0.0.1:36208/appservice/app.js:15862:21)
at webpack_require (http://127.0.0.1:36208/appservice/runtime.js:226:23)
at Object../node_modules/sentry-miniapp/dist/sdk.js (http://127.0.0.1:36208/appservice/app.js:16440:15)
at webpack_require (http://127.0.0.1:36208/appservice/runtime.js:226:23)
at Object../node_modules/sentry-miniapp/dist/index.js (http://127.0.0.1:36208/appservice/app.js:15237:13)
at webpack_require (http://127.0.0.1:36208/appservice/runtime.js:226:23)
at Object../src/utils/request.ts (http://127.0.0.1:36208/appservice/app.js:23563:14)
at webpack_require
RT
参考了demo,promise上报没有看到效果,现象好像是:promise上报跟普通错误同时发生,promise上报就失效了,代码如下
`
onShow() {
console.log(this.data[Math.random() * 100000]) // 可以上报
new Promise((resovle, reject) => {
console.log(this.Promise[Math.random()])()
resovle()
})
.then((res) => {
console.log(res)
}, (err) => {
// console.error(err)
Sentry.captureException(err) // 无法上报
})
}
`
如题。
目前如果基于Taro 技术栈开发小程序,并且生产模式打包后,可以支持错误追溯sourceMap 对应的源文件么
像官方提供的vue类似形式如何引入
import { BrowserTracing } from "@sentry/tracing";
integrations: [new BrowserTracing()]
看到你的文档说内置了功能 这个是没有包含在其中是吗
在微信开发者工具上的异常和信息都能正常捕获,但体验版和正式版均无法捕获。
另外编译增强已开启
uniapp现在最难受的场景是 reportJSException >>>> exception function:callReportCrash, exception:weex core process crash and restart exception
请问有没有什么办法可以捕获到这种异常, 比如模拟的堆oom场景
接好 sentry 可以上传,但是上传的错误都是
Error: [object Object]
at ? (<anonymous>:8277:43739)
at n.u.function.o.test.hx.has.t.(anonymous function)(<anonymous>:2:1500119)
at i.<anonymous>(<anonymous>:2:128008)
at i.emit(<anonymous>:2:615034)
at Object.emit(<anonymous>:2:581938)
at ? (<anonymous>:2:623832)
at n.<anonymous>(<anonymous>:2:132346)
at ? (<anonymous>:2:128008)
at ? (<anonymous>:2:110318)
这类型的,请问有方式转换上传的错误对象吗?
RT
公司用的是sentry私有化部署版本,咱们这个支持容器化部署吗?
开发前请仔细阅读下面内容:
下面的地址失效了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.