From 3c5ff949a286367c44b3bbcc010ffb0e86d8de45 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Tue, 12 Dec 2023 12:17:14 +0100 Subject: [PATCH] enable sentry performance monitoring --- scipost_django/SciPost_v1/settings/production_do1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scipost_django/SciPost_v1/settings/production_do1.py b/scipost_django/SciPost_v1/settings/production_do1.py index 35055a937..a670dbb5d 100644 --- a/scipost_django/SciPost_v1/settings/production_do1.py +++ b/scipost_django/SciPost_v1/settings/production_do1.py @@ -67,7 +67,9 @@ LOGGING["handlers"]["scipost_file_doi"][ ] = "/home/scipost/SciPost_logs/doi.log" LOGGING["handlers"]["api_file"]["filename"] = "/home/scipost/SciPost_logs/api.log" LOGGING["handlers"]["oauth_file"]["filename"] = "/home/scipost/SciPost_logs/oauth.log" -LOGGING["handlers"]["submission_fellowship_updates"]["filename"] = "/home/scipost/SciPost_logs/submission_fellowship_updates.log" +LOGGING["handlers"]["submission_fellowship_updates"][ + "filename" +] = "/home/scipost/SciPost_logs/submission_fellowship_updates.log" # API @@ -80,6 +82,7 @@ MAILGUN_API_KEY = get_secret("MAILGUN_API_KEY") sentry_sdk.init( dsn=get_secret("SENTRY_DSN"), integrations=[DjangoIntegration(), CeleryIntegration()], + enable_tracing=True, ) CSP_REPORT_URI = get_secret("CSP_SENTRY") CSP_REPORT_ONLY = False -- GitLab