Skip to content

Commit

Permalink
Fix sentry_sdk 0.19.0 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkovtsev committed Oct 19, 2020
1 parent 19a56cb commit 35a6176
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -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 && \
Expand Down
1 change: 1 addition & 0 deletions server/athenian/api/__init__.py
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Expand Up @@ -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
Expand Down

0 comments on commit 35a6176

Please sign in to comment.