Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #48 from open-contracting/45-sentry
Browse files Browse the repository at this point in the history
Add Sentry
  • Loading branch information
odscjames committed Oct 28, 2019
2 parents 4fe1371 + 88fa446 commit 6f041c0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
8 changes: 8 additions & 0 deletions ocdstoucan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import os
from django.utils.translation import gettext_lazy as _
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -160,3 +162,9 @@
'Record Package': 'https://standard.open-contracting.org/schema/1__0__3/record-package-schema.json'
}
}

if os.getenv('SENTRY_DSN') is not None:
sentry_sdk.init(
dsn=os.getenv('SENTRY_DSN'),
integrations=[DjangoIntegration()]
)
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ libcoveocds
ocdskit
python-dateutil
requests
sentry-sdk
31 changes: 17 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
attrs==19.1.0
attrs==19.3.0
bleach==3.1.0
cached-property==1.5.1
certifi==2019.9.11
chardet==3.0.4
commonmark==0.9.0
commonmark==0.9.1
contextlib2==0.5.5
Django==2.1.12
Django==2.1.13
et-xmlfile==1.0.1
flattentool==0.8.0
future==0.17.1
flattentool==0.9.0
idna==2.8
ijson==2.5
ijson==2.5.1
importlib-metadata==0.23
jdcal==1.4.1
json-merge-patch==0.2
jsonref==0.2
jsonschema==3.0.2
libcove==0.10.0
jsonschema==3.1.1
libcove==0.11.0
libcoveocds==0.7.3
lxml==4.4.1
ocdsextensionregistry==0.0.14
more-itertools==7.2.0
ocdsextensionregistry==0.0.15
ocdskit==0.1.3
ocdsmerge==0.5.7
openpyxl==3.0.0
pyrsistent==0.15.4
ocdsmerge==0.5.8
openpyxl==2.6.4
pyrsistent==0.15.5
python-dateutil==2.8.0
pytz==2019.2
pytz==2019.3
requests==2.22.0
requests-cache==0.5.2
rfc3987==1.3.8
schema==0.7.1
sentry-sdk==0.13.1
six==1.12.0
SQLAlchemy==1.3.8
SQLAlchemy==1.3.10
strict-rfc3339==0.7
urllib3==1.25.6
webencodings==0.5.1
xmltodict==0.12.0
zipp==0.6.0

0 comments on commit 6f041c0

Please sign in to comment.