Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
94faed24
Commit
94faed24
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
majak: Sentry integration
parent
8ec7648c
No related branches found
No related tags found
2 merge requests
!103
majak: Sentry integration
,
!102
majak: Sentry integration
Pipeline
#1204
passed
4 years ago
Stage: build
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.isort.cfg
+1
-1
1 addition, 1 deletion
.isort.cfg
README.md
+1
-0
1 addition, 0 deletions
README.md
majak/settings/base.py
+11
-0
11 additions, 0 deletions
majak/settings/base.py
requirements/base.in
+1
-0
1 addition, 0 deletions
requirements/base.in
requirements/base.txt
+3
-2
3 additions, 2 deletions
requirements/base.txt
with
17 additions
and
3 deletions
.isort.cfg
+
1
−
1
View file @
94faed24
...
@@ -4,4 +4,4 @@ line_length = 88
...
@@ -4,4 +4,4 @@ line_length = 88
multi_line_output
=
3
multi_line_output
=
3
default_sectiont
=
"THIRDPARTY"
default_sectiont
=
"THIRDPARTY"
include_trailing_comma
=
true
include_trailing_comma
=
true
known_third_party
=
arrow,django,environ,faker,ics,modelcluster,pirates,pytest,pytz,requests,snapshottest,taggit,wagtail,wagtailmetadata
known_third_party
=
arrow,django,environ,faker,ics,modelcluster,pirates,pytest,pytz,requests,
sentry_sdk,
snapshottest,taggit,wagtail,wagtailmetadata
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
94faed24
...
@@ -84,6 +84,7 @@ Různé:
...
@@ -84,6 +84,7 @@ Různé:
| proměnná | default | popis |
| proměnná | default | popis |
| --- | --- | --- |
| --- | --- | --- |
|
`MAJAK_ENV`
| prod |
`prod`
/
`test`
/
`dev`
prostředí kde Maják běží |
|
`MAJAK_ENV`
| prod |
`prod`
/
`test`
/
`dev`
prostředí kde Maják běží |
|
`SENTRY_DSN`
| | pokud je zadáno, pády se reportují do Sentry |
Settings pro appky na weby:
Settings pro appky na weby:
...
...
This diff is collapsed.
Click to expand it.
majak/settings/base.py
+
11
−
0
View file @
94faed24
...
@@ -2,6 +2,8 @@ from os.path import join
...
@@ -2,6 +2,8 @@ from os.path import join
from
pathlib
import
Path
from
pathlib
import
Path
import
environ
import
environ
import
sentry_sdk
from
sentry_sdk.integrations.django
import
DjangoIntegration
ROOT_DIR
=
Path
(
__file__
).
parents
[
2
]
ROOT_DIR
=
Path
(
__file__
).
parents
[
2
]
PROJECT_DIR
=
ROOT_DIR
/
"
majak
"
PROJECT_DIR
=
ROOT_DIR
/
"
majak
"
...
@@ -179,6 +181,15 @@ CACHES = {
...
@@ -179,6 +181,15 @@ CACHES = {
CACHES
[
"
default
"
][
"
TIMEOUT
"
]
=
60
*
60
*
24
CACHES
[
"
default
"
][
"
TIMEOUT
"
]
=
60
*
60
*
24
CACHES
[
"
renditions
"
][
"
TIMEOUT
"
]
=
60
*
60
*
24
CACHES
[
"
renditions
"
][
"
TIMEOUT
"
]
=
60
*
60
*
24
# SENTRY
# ------------------------------------------------------------------------------
SENTRY_DSN
=
env
.
str
(
"
SENTRY_DSN
"
,
default
=
""
)
if
SENTRY_DSN
:
sentry_sdk
.
init
(
dsn
=
SENTRY_DSN
,
integrations
=
[
DjangoIntegration
()],
send_default_pii
=
True
,
)
# WAGTAIL SETTINGS
# WAGTAIL SETTINGS
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
WAGTAIL_SITE_NAME
=
"
Maják
"
WAGTAIL_SITE_NAME
=
"
Maják
"
...
...
This diff is collapsed.
Click to expand it.
requirements/base.in
+
1
−
0
View file @
94faed24
...
@@ -11,3 +11,4 @@ opencv-python
...
@@ -11,3 +11,4 @@ opencv-python
requests
requests
ics
ics
arrow
arrow
sentry-sdk
This diff is collapsed.
Click to expand it.
requirements/base.txt
+
3
−
2
View file @
94faed24
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
arrow==0.14.7 # via -r base.in, ics
arrow==0.14.7 # via -r base.in, ics
asgiref==3.2.10 # via django
asgiref==3.2.10 # via django
beautifulsoup4==4.8.2 # via wagtail
beautifulsoup4==4.8.2 # via wagtail
certifi==2020.6.20 # via requests
certifi==2020.6.20 # via requests
, sentry-sdk
cffi==1.14.2 # via cryptography
cffi==1.14.2 # via cryptography
chardet==3.0.4 # via requests
chardet==3.0.4 # via requests
cryptography==3.1 # via josepy, mozilla-django-oidc, pyopenssl
cryptography==3.1 # via josepy, mozilla-django-oidc, pyopenssl
...
@@ -45,13 +45,14 @@ python-ldap==3.3.1 # via pirates
...
@@ -45,13 +45,14 @@ python-ldap==3.3.1 # via pirates
pytz==2020.1 # via django, django-modelcluster, l18n
pytz==2020.1 # via django, django-modelcluster, l18n
redis==3.5.3 # via django-redis
redis==3.5.3 # via django-redis
requests==2.24.0 # via -r base.in, mozilla-django-oidc, wagtail
requests==2.24.0 # via -r base.in, mozilla-django-oidc, wagtail
sentry-sdk==0.17.4 # via -r base.in
six==1.15.0 # via cryptography, html5lib, ics, josepy, l18n, mozilla-django-oidc, pyopenssl, python-dateutil
six==1.15.0 # via cryptography, html5lib, ics, josepy, l18n, mozilla-django-oidc, pyopenssl, python-dateutil
soupsieve==2.0.1 # via beautifulsoup4
soupsieve==2.0.1 # via beautifulsoup4
sqlparse==0.3.1 # via django
sqlparse==0.3.1 # via django
tablib[xls,xlsx]==2.0.0 # via wagtail
tablib[xls,xlsx]==2.0.0 # via wagtail
tatsu==5.5.0 # via ics
tatsu==5.5.0 # via ics
unidecode==1.1.1 # via wagtail
unidecode==1.1.1 # via wagtail
urllib3==1.25.10 # via requests
urllib3==1.25.10 # via requests
, sentry-sdk
wagtail-metadata==3.3.0 # via -r base.in
wagtail-metadata==3.3.0 # via -r base.in
wagtail==2.10.1 # via -r base.in, wagtail-metadata
wagtail==2.10.1 # via -r base.in, wagtail-metadata
webencodings==0.5.1 # via html5lib
webencodings==0.5.1 # via html5lib
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment