# sentry-tester **Repository Path**: jackeylv/sentry-tester ## Basic Information - **Project Name**: sentry-tester - **Description**: 一个独立Jar包小程序,通过输入的sentry_dsn变量,向sentry服务发送测试信息和异常,用于验证sentry的配置、网络、邮件告警等问题。 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用说明 非常简单的一个Spring-Boot客户端程序,加载了Sentry的`sentry-spring`包,接收JVM的`sentry.dsn`参数或者环境变量`SENTRY_DSN`来验证sentry的配置。 ## 示例 ```shell ❯ java -jar -Dsentry.dsn=http://d542b8928be545318d320a1fa00f9f9e@sentry.oa.com:9000/3 .\target\sentry-tester-1.0.jar 2020-02-06 12:18:56.455 INFO 19016 --- [ main] c.e.s.SentryTesterApplication : Started SentryTesterApplication in 1.861 seconds (JVM running for 2.57) Sending a testing message in INFO level Sending an exception. Closing the sentry connection. ``` ## 如何验证? 登录sentry账号,查看与`sentry_dsn`匹配到项目,是否存在由`sentry-tester`发出的信息,如果sentry配置有邮件、短信告警, 也需要再查看是否有收到这些提示信息。 ![issues listing](images/issues.png) ![example issue created by sentry tester](images/example-message.png)