Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Sentry 搭建异常监控系统 #89

Open
zhiwenxuan opened this issue Dec 8, 2022 · 0 comments
Open

使用Sentry 搭建异常监控系统 #89

zhiwenxuan opened this issue Dec 8, 2022 · 0 comments

Comments

@zhiwenxuan
Copy link
Owner

zhiwenxuan commented Dec 8, 2022

搭建后台服务

参考

https://develop.sentry.dev/self-hosted/
https://sentry.nuxtjs.org/sentry/options/
https://docs.sentry.io/platforms/javascript/guides/vue/configuration/options/#enabled

步骤

  1. 下载代码
git clone [email protected]:getsentry/self-hosted.git
  1. install
./install.sh
  1. 启动docker
docker-compose up -d
  1. 添加账号
docker-compose --ansi never run --rm web createuser --force-update --superuser --email  [email protected] --password secret

问题列表

502

原因是:服务没有完全启动
解决方法:重新安装

./install.sh
docker-compose up -d

Nuxt 添加 sentry 模块

启动不了,报TypeError: Cannot use 'in' operator to search for 'sentry' in undefined

原因:高版本只支持 TypeScript

解决方法:

  1. 使用低版本 4.5.0 (此版本之后才支持 tracing)
  2. 配置支持TypeScript

基础接口

  1. 上报错误 captureException
  2. config
environment
ignoreErrors: [],
beforeSend(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant