Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
c27a53c7
Verified
Commit
c27a53c7
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add Sentry backend integration
parent
2c42d8ff
No related branches found
No related tags found
1 merge request
!745
Resolve "Integrate Sentry for performance and error tracing"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/settings.py
+17
-0
17 additions, 0 deletions
aleksis/core/settings.py
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
with
19 additions
and
0 deletions
aleksis/core/settings.py
+
17
−
0
View file @
c27a53c7
...
@@ -855,5 +855,22 @@ else:
...
@@ -855,5 +855,22 @@ else:
SASS_PROCESSOR_STORAGE
=
DEFAULT_FILE_STORAGE
SASS_PROCESSOR_STORAGE
=
DEFAULT_FILE_STORAGE
if
_settings
.
get
(
"
health.sentry.enabled
"
,
False
):
import
sentry_sdk
from
sentry_sdk.integrations.django
import
DjangoIntegration
from
aleksis.core
import
__version__
sentry_sdk
.
init
(
dsn
=
_settings
.
get
(
"
health.sentry.dsn
"
),
environment
=
_settings
.
get
(
"
health.sentry.environment
"
),
integrations
=
[
DjangoIntegration
(
transaction_style
=
"
function_name
"
,
)],
traces_sample_rate
=
_settings
.
get
(
"
health.sentry.traces_sample_rate
"
,
1.0
),
send_default_pii
=
_settings
.
get
(
"
health.sentry.send_default_pii
"
,
False
),
release
=
f
"
aleksis-core@
{
__version__
}
"
,
in_app_include
=
"
aleksis
"
,
)
# Add django-cleanup after all apps to ensure that it gets all signals as last app
# Add django-cleanup after all apps to ensure that it gets all signals as last app
INSTALLED_APPS
.
append
(
"
django_cleanup.apps.CleanupConfig
"
)
INSTALLED_APPS
.
append
(
"
django_cleanup.apps.CleanupConfig
"
)
This diff is collapsed.
Click to expand it.
pyproject.toml
+
2
−
0
View file @
c27a53c7
...
@@ -113,10 +113,12 @@ Whoosh = "^2.7.4"
...
@@ -113,10 +113,12 @@ Whoosh = "^2.7.4"
django-titofisto
=
"^0.1.0"
django-titofisto
=
"^0.1.0"
haystack-redis
=
"^0.0.1"
haystack-redis
=
"^0.0.1"
python-gnupg
=
"^0.4.7"
python-gnupg
=
"^0.4.7"
sentry-sdk
=
{
version
=
"^1.4.3"
,
optional
=
true
}
[tool.poetry.extras]
[tool.poetry.extras]
ldap
=
[
"django-auth-ldap"
]
ldap
=
[
"django-auth-ldap"
]
s3
=
[
"boto3"
,
"django-storages"
]
s3
=
[
"boto3"
,
"django-storages"
]
sentry
=
[
"sentry"
]
[tool.poetry.dev-dependencies]
[tool.poetry.dev-dependencies]
aleksis-builddeps
=
"*"
aleksis-builddeps
=
"*"
...
...
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