Skip to content
Snippets Groups Projects
Commit 8df96796 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

Merge branch 'redmine-issues/26581' into 'develop'

REDMINE_ISSUE-26581 | Brancher GC à Sentry

See merge request !534
parents a1885b0f b28c391f
No related branches found
No related tags found
1 merge request!534REDMINE_ISSUE-26581 | Brancher GC à Sentry
Pipeline #41610 passed with warnings
......@@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
import os
from decouple import config, Csv
import sentry_sdk
sentry_sdk.init(
dsn="https://9bc5c885d28f85ba1410fb1ec9b9a8a4@sentry.neogeo.fr/31",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
......
......@@ -12,6 +12,14 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
import os
from decouple import config, Csv
import sentry_sdk
sentry_sdk.init(
dsn="https://9bc5c885d28f85ba1410fb1ec9b9a8a4@sentry.neogeo.fr/31",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
......
......@@ -6,9 +6,15 @@ from geocontrib.views import FeatureTypeDetail
from geocontrib.views import view404
from geocontrib.views import protected_serve
# To verify Sentry installation
def trigger_error(request):
division_by_zero = 1 / 0
app_name = 'geocontrib'
urlpatterns = [
# Include Sentry URL to verify installation
path('sentry-debug/', trigger_error),
# Get the media files path to register routes towards it and control if the requested files can be viewed by current user
path('media/<path:path>', protected_serve, {'document_root': settings.MEDIA_ROOT}),
......
......@@ -18,3 +18,4 @@ python-magic==0.4.27
redis==5.0.8
requests==2.32.3
setuptools==73.0.1 # Le module distutils n'est plus inclus par défaut dans Python 3.12 et fait partie de setuptools
sentry-sdk>=2.0,<3.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment