sentry

Sentry logging in Django/Celery stopped working

核能气质少年 提交于 2019-12-07 10:30:01
问题 I have no idea whats wrong. So far logging worked fine (and I was relying on that) but it seems to have stopped. I wrote a little test function (which does not work either): core.tasks.py import logging from celery.utils.log import get_task_logger logger = get_task_logger(__name__) logger.setLevel(logging.DEBUG) @app.task def log_error(): logger.error('ERROR') settings.py INSTALLED_APPS += ( 'raven.contrib.django.raven_compat', ) LOGGING = { 'version': 1, 'disable_existing_loggers': True,

C++: strange behavior with std::istream or sentry wrap around

微笑、不失礼 提交于 2019-12-06 04:57:21
This small custom getline function was given as an answer to a question about handling different line endings. The function worked great until it was edited 2 days ago to make it not skip leading white spaces for each line. However, after the edit, the program now goes into an infinite loop. The only change done to the code was this following line which was changed from this: std::istream::sentry se(is); // When this line is enabled, the program executes // correctly (no infinite loop) but it does skip // leading white spaces to this: std::istream::sentry se(is, true); // With this line

localStorage is null in chrome mobile android

∥☆過路亽.° 提交于 2019-12-05 22:23:05
问题 I use Sentry to track the error in my website. The problem is sometimes chrome mobile for android has a null localStorage that cause all related method such as getItem or setItem will produce an error (Yeah, it's flaky). Have you ever got the problem like this before? I'd like to know the best solution for this problem. Thanks :) 回答1: Maybe it is because this question is almost 2 years old and they've changed things but localStorage definitely works in Android Chrome with localStorage.setItem

Sentry's sourcemaps/artifacts don't work

拥有回忆 提交于 2019-12-05 12:31:53
I'm building, minifying and generating sourcemaps of my app with webpack. Artifacts are sent to sentry.io with webpack-sentry-plugin. The javascript code is run from localhost:8080/js/app.js . It contains //# sourceMappingURL=app.js.map at the end. Sourcemaps work correctly at Chrome devtools. Sentry's Releases/Artifacts contain the following files: js/app.js js/app.js.map Anyway, when Sentry logs an error, stacktrace is from the minified file. It's not using the sourcemaps. What am I doing wrong in my setup? Or what other info should I give to get help? I posted this question at forum.sentry

linux下docker+sentry安装配置

那年仲夏 提交于 2019-12-05 04:20:29
一、成功安装 1.安装docker sudo yum -y install docker-io 2.启动docker service docker start 3.docker换源 sudo curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://6616fe43.m.daocloud.io 4.将docker加入到开机启动中 chkconfig docker on 5.docker拉取redis postsql 和sentry docker pull redis docker pull postgres docker pull sentry 6.启动redis和sentry docker run -d --name sentry-redis redis docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres docker run --rm sentry config generate-secret-key 7.启动sentry(上一行得到secret-key,然后把key复制到下面四行的单引号中) docker run -it --rm -e SENTRY

降低手机网错误率

北城余情 提交于 2019-12-05 03:10:44
sentry报错来源 1.vivo、华为、UC、安卓系统 jsbridge等外部植入的变量引起的错误 忽略掉该种sentry错误上报即可 2.sentry自身引起的错误 忽略该种上报 3.方法/属性 兼容性 个别手机不支持某种特性引起的 4.接口 跨域/边界未处理 查错办法: 1. 根据sentry错误提示分析可能原因 2. 源代码全局搜一下 3. Google一下,一般能找到遇到相同错误的信息 来源: https://www.cnblogs.com/fengluzheweb/p/11901520.html

How to pass properties from application.properties to logback config file

怎甘沉沦 提交于 2019-12-05 01:19:46
问题 Overview: I am using Sentry appender in my logback.xml file and I want to pass plenty of tags as parameters from application.properties file to logback config file. logback.xml file: <?xml version="1.0" encoding="UTF-8"?> <configuration> <include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/file-appender.xml"/> <include resource="org/springframework/boot/logging/logback/console-appender.xml"/> <appender name=

sentry配置

你离开我真会死。 提交于 2019-12-04 06:18:58
配置钉钉通知: vim requirements.txt # Add plugins here sentry-dingtalk-new django-smtp-ssl~=1.0 redis-py-cluster==1.3.4 重建下 docker-compose build docker-compose restart 在web端,创建项目,配置,查看是否有dingtalk。在钉钉拉一个组,创建自定义机器人。将连接copy放入dingtalkRoot 里,保存,点击test plugin 测试查看消息 来源: https://www.cnblogs.com/duanxz/p/11837182.html

Sentry异常捕获平台

穿精又带淫゛_ 提交于 2019-12-03 13:57:15
本文包括Sentry平台的介绍,以及环境搭建两部分,更多细节请查阅官方文档。 简介 Sentry是一个实时事件的日志聚合平台。它专门监测错误并提取所有有用信息用于分析,不再麻烦地依赖用户反馈来定位问题。 Sentry发展多年,几乎没有同类产品可与其媲美。它能 覆盖大部分的主流编程语言与框架 ,很适合应用到实际生产环境中采集异常日志。 最近我在设计持续交付流程过程时,公司一位前辈提到这个工具与用法。简单搭建并使用之后,基本确定在CD的灰度发布环节应用Sentry:若在灰度过程中获取到异常则触发灰度结束,将可能出现的异常由 “上线-客户发现问题- 反馈问题-运维手动回滚” 变为 “灰度-Sentry捕获异常-自动停止灰度”,杜绝了回滚带来的不好形象,同时也能缩短问题发现的周期。 环境搭建 Sentry可以使用Python2.7搭建,也可以利用Docker直接部署。考虑到目前大部分用户已经使用Python3,直接安装Sentry可能弄乱Python环境,因此 强烈推荐使用Docker搭建Sentry环境 ! 以下是Docker搭建Sentry平台的步骤,请保证每一步执行完成: 启动一个 Redis 容器: $ docker run -d --name sentry-redis redis 启动一个 Postgres 容器 $ docker run -d --name sentry