From 35a617698016cdc41a860a4432cb6ba60f4940f0 Mon Sep 17 00:00:00 2001 From: Vadim Markovtsev Date: Mon, 19 Oct 2020 12:21:34 +0200 Subject: [PATCH] Fix sentry_sdk 0.19.0 crash https://github.com/getsentry/sentry-python/issues/858 --- Dockerfile | 1 + server/athenian/api/__init__.py | 1 + server/requirements.txt | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 288bdc9274..7e2fd8b11a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,6 +75,7 @@ ADD patches /patches RUN apt-get update && \ apt-get install -y --no-install-suggests --no-install-recommends python3-dev gcc g++ patch && \ pip3 install --no-cache-dir -r /server/requirements.txt && \ + pip3 uninstall -y flask && \ patch /usr/local/lib/python*/dist-packages/databases/backends/postgres.py /patches/databases.patch && \ patch /usr/local/lib/python*/dist-packages/prometheus_client/exposition.py /patches/prometheus_client.patch && \ patch /usr/local/lib/python*/dist-packages/aiomcache/client.py /patches/aiomcache_version.patch && \ diff --git a/server/athenian/api/__init__.py b/server/athenian/api/__init__.py index 81571a81eb..2b23528fbc 100644 --- a/server/athenian/api/__init__.py +++ b/server/athenian/api/__init__.py @@ -511,6 +511,7 @@ def filter_sentry_events(event: dict, hint) -> Optional[dict]: integrations=[AioHttpIntegration(), SqlalchemyIntegration(), LoggingIntegration(level=logging.INFO, event_level=logging.ERROR), PureEvalIntegration(), ExecutingIntegration()], + auto_enabling_integrations=False, send_default_pii=True, debug=sentry_env != "production", max_breadcrumbs=20, diff --git a/server/requirements.txt b/server/requirements.txt index 417adb9233..42d07dee03 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -8,7 +8,7 @@ xxhash==2.0.0 # remember to change these versions in Dockerfile, too! numpy==1.19.1 scipy==1.5.2 -sentry-sdk[pure_eval]==0.19.0 +sentry-sdk[pure_eval]==0.19.1 prometheus_client==0.8.0 alembic==1.4.3 pandas==1.1.3