sentry

How to have multiple global DSN in sentry sdk in Python?

南笙酒味 提交于 2020-02-07 05:25:06
问题 I would like to have multiple DSNs in the tool I am writing. The tool is something that the users will give their own DSN to to track errors. I also want to track errors in my own DSN as well. This was asked here as well, but the answer given was to have one global DSN, and then manually submit events through another Client. Related and unanswered: How to use multiple DSN in Sentry (javascript/browser) 回答1: Looking through the code, the most expedient and supportable way to do this appears to

Sentry with @sentry/webpack-plugin and heroku

三世轮回 提交于 2020-01-14 13:45:07
问题 I'm using webpack to build my app and it works locally with @sentry/webpack-plugin – it autogenerates the release and uploads the sourcemaps to Sentry. However, if I'm trying to build the same app on Heroku it gives me the following error: Error: Command failed: /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/node_modules/@sentry/cli/sentry-cli releases propose-version INFO 2019-04-16 13:33:13.141611957 +00:00 Loaded config from /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/

Sentry with @sentry/webpack-plugin and heroku

时光总嘲笑我的痴心妄想 提交于 2020-01-14 13:42:09
问题 I'm using webpack to build my app and it works locally with @sentry/webpack-plugin – it autogenerates the release and uploads the sourcemaps to Sentry. However, if I'm trying to build the same app on Heroku it gives me the following error: Error: Command failed: /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/node_modules/@sentry/cli/sentry-cli releases propose-version INFO 2019-04-16 13:33:13.141611957 +00:00 Loaded config from /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/

Sentry with @sentry/webpack-plugin and heroku

▼魔方 西西 提交于 2020-01-14 13:42:05
问题 I'm using webpack to build my app and it works locally with @sentry/webpack-plugin – it autogenerates the release and uploads the sourcemaps to Sentry. However, if I'm trying to build the same app on Heroku it gives me the following error: Error: Command failed: /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/node_modules/@sentry/cli/sentry-cli releases propose-version INFO 2019-04-16 13:33:13.141611957 +00:00 Loaded config from /tmp/build_e3ae44a78c063d6493d3fdfc983bd8d6/client/

在Django中使用Sentry(Python 3.6.8 + Django 1.11.20 + sentry-sdk 0.13.5)

泄露秘密 提交于 2020-01-13 18:13:45
1. 安装Sentry pip install sentry-sdk==0.13.5 2.在settings.py中配置 sentry_sdk.init( dsn="https://*************@sentry.io/1879284", integrations=[DjangoIntegration()], send_default_pii=True ) 3.dsn的获取 在下面这个网站注册一个sentry账号,然后创建一个project,就可以拿到了。(这个是sentry的官网,好像是要付费的,但是我用了有三个月,没给钱,还能用。) https://sentry.io/welcome/ 4.注意事项 首先,sentry如果想要捕获异常,那么需要跟logging配合使用,并且只会捕获exception级别的异常(debug级别的不行,其他的我没试,如果有兴趣的话,各位可以试一下)。 如果各位不想使用logging也可以,使用raven。至于教程可以去谷歌一下。 最后,如有问题,请留言。 来源: https://www.cnblogs.com/thescholar/p/12188424.html

How to report console.error with Sentry?

帅比萌擦擦* 提交于 2020-01-01 05:38:05
问题 I have application where some critical issues are reported with console.error but are not thrown so application might continue to run - possibly in crippled state. It's necessary to report also console.error issues, but Sentry (Raven) library send to server only thrown exceptions. Does someone knows how to solve this nicely ? (ideally without need to rewrite all console.error calls, cause also some vendor libraries might still write output just into console) 回答1: As user @kumar303 mentioned

Failed to Generate Signed Apk - An organization slug is required (provide with --org)

不想你离开。 提交于 2019-12-29 08:40:12
问题 After setting up the Sentry.io error tracking I get this error when I try to Generate Signed Apk : Java Compiler error: An organization slug is required (provide with --org) Click on this image and open it to see more details: I cannot understand anything from this one: Process 'command '/var/folders/j4/_fzm1rks3tsc2h3j4l2qbq4w0000gn/T/.sentry-cli1369818638611304938.exe' ' finished with non-zero exit value 1 This is the file address that was raised in error: How can I solve this problem and

Using sentry logging with elasticsearch

旧街凉风 提交于 2019-12-24 15:27:40
问题 I try to store all the logs at sentry instance. Accordingly to this thread I tried the following: Added sentry appender to loggin.yml: es.logger.level: INFO rootLogger: ${es.logger.level}, console, sentry ... appender: console: type: console layout: type: consolePattern conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" sentry: type: net.kencochrane.raven.log4j.SentryAppender dsn: "http://...@..." And copied raven-5.0.jar , raven-log4j-5.0.jar and raven-logback-5.0.jar to es/lib folder. No

Thumbnail tag failed: (sorl-thumbnail 11.12)

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:15:58
问题 I keep getting strange errors from sorl-thumbnail in my production environment (using Sentry as a logger). They all just say Thumbnail tag failed: (which is oh-so-uber-helpful), and they all come from one of three modules. The weird thing is that it doesn't actually affect the site. Pages load fine, and even the thumbnails load fine. It's really only a concern because I'm tired of seeing the errors show up in my list in my Sentry dashboard. However, I can't make heads or tails out of why the