📈(monitoring) configure sentry dsn
configure sentry dsn to monitor errors in sentry
This commit is contained in:
committed by
Marie
parent
4b47f80cab
commit
4fe74733a5
@@ -8,6 +8,10 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- 📈(monitoring) configure sentry monitoring #378
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- 🐛(dimail) improve handling of dimail errors on failed mailbox creation #377
|
- 🐛(dimail) improve handling of dimail errors on failed mailbox creation #377
|
||||||
|
|||||||
@@ -473,6 +473,7 @@ class Base(Configuration):
|
|||||||
environment=cls.__name__.lower(),
|
environment=cls.__name__.lower(),
|
||||||
release=get_release(),
|
release=get_release(),
|
||||||
integrations=[DjangoIntegration()],
|
integrations=[DjangoIntegration()],
|
||||||
|
traces_sample_rate=1.0,
|
||||||
)
|
)
|
||||||
with sentry_sdk.configure_scope() as scope:
|
with sentry_sdk.configure_scope() as scope:
|
||||||
scope.set_extra("application", "backend")
|
scope.set_extra("application", "backend")
|
||||||
@@ -654,6 +655,10 @@ class Production(Base):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
SENTRY_DSN = values.Value(
|
||||||
|
"https://b72746c73d669421e7a8ccd3fab0fad2@sentry.incubateur.net/171",
|
||||||
|
environ_name="SENTRY_DSN",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Feature(Production):
|
class Feature(Production):
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ dependencies = [
|
|||||||
"PyJWT==2.9.0",
|
"PyJWT==2.9.0",
|
||||||
"joserfc==1.0.0",
|
"joserfc==1.0.0",
|
||||||
"requests==2.32.3",
|
"requests==2.32.3",
|
||||||
"sentry-sdk==2.13.0",
|
"sentry-sdk[django]==2.13.0",
|
||||||
"url-normalize==1.4.3",
|
"url-normalize==1.4.3",
|
||||||
"whitenoise==6.7.0",
|
"whitenoise==6.7.0",
|
||||||
"mozilla-django-oidc==4.0.1",
|
"mozilla-django-oidc==4.0.1",
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ backend:
|
|||||||
POSTGRES_PASSWORD: pass
|
POSTGRES_PASSWORD: pass
|
||||||
REDIS_URL: redis://default:pass@redis-master:6379/1
|
REDIS_URL: redis://default:pass@redis-master:6379/1
|
||||||
MAIL_PROVISIONING_API_URL: "http://host.docker.internal:8000"
|
MAIL_PROVISIONING_API_URL: "http://host.docker.internal:8000"
|
||||||
|
SENTRY_DSN: "https://b72746c73d669421e7a8ccd3fab0fad2@sentry.incubateur.net/171"
|
||||||
command:
|
command:
|
||||||
- "gunicorn"
|
- "gunicorn"
|
||||||
- "-c"
|
- "-c"
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ backend:
|
|||||||
key: url
|
key: url
|
||||||
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
||||||
FEATURE_TEAMS: False
|
FEATURE_TEAMS: False
|
||||||
|
SENTRY_DSN: "https://b72746c73d669421e7a8ccd3fab0fad2@sentry.incubateur.net/171"
|
||||||
|
|
||||||
createsuperuser:
|
createsuperuser:
|
||||||
command:
|
command:
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ backend:
|
|||||||
key: url
|
key: url
|
||||||
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
||||||
FEATURE_TEAMS: False
|
FEATURE_TEAMS: False
|
||||||
|
SENTRY_DSN: "https://b72746c73d669421e7a8ccd3fab0fad2@sentry.incubateur.net/171"
|
||||||
|
|
||||||
createsuperuser:
|
createsuperuser:
|
||||||
command:
|
command:
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ backend:
|
|||||||
name: redis.redis.libre.sh
|
name: redis.redis.libre.sh
|
||||||
key: url
|
key: url
|
||||||
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
MAIL_PROVISIONING_API_URL: "https://api.dev.ox.numerique.gouv.fr"
|
||||||
|
SENTRY_DSN: "https://b72746c73d669421e7a8ccd3fab0fad2@sentry.incubateur.net/171"
|
||||||
|
|
||||||
createsuperuser:
|
createsuperuser:
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user