# uniapp_sentry_mix **Repository Path**: harry7988/uniapp_sentry_mix ## Basic Information - **Project Name**: uniapp_sentry_mix - **Description**: uniapp使用SenTry收集报错信息Demo - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2019-09-11 - **Last Updated**: 2021-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## `uniapp`集成`senTry`进行收集Bug【Demo】 ### 1、 本地部署(官网申请也可) 参考:`https://github.com/getsentry/onpremise` ### 2、项目集成 引入`SDK` ```bash yarn add sentry-mina ``` 在`main.js`引入 ```javascript import * as sentry from "sentry-mina"; sentry.init({ dsn: 'http://2943aff8dcb541b6aafb84941ed3fa52@192.168.1.178:9000/3'//申请或者部署完成后新建项目的时候有这个链接。 }) new sentry.Integrations.Breadcrumbs({ console: true, request: true, navigation: true, api: true, lifecycle: true, unhandleError: true }) ```