mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-10 07:03:12 -05:00
@@ -1,24 +1,6 @@
|
||||
import os
|
||||
|
||||
import sentry_sdk
|
||||
from flask import Flask
|
||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||
from sentry_sdk.integrations.redis import RedisIntegration
|
||||
from sentry_sdk.integrations import logging
|
||||
|
||||
from app import create_app
|
||||
|
||||
if 'SENTRY_DSN' in os.environ:
|
||||
sentry_sdk.init(
|
||||
dsn=os.environ['SENTRY_DSN'],
|
||||
integrations=[FlaskIntegration(), RedisIntegration()],
|
||||
environment=os.environ['NOTIFY_ENVIRONMENT'],
|
||||
attach_stacktrace=True,
|
||||
traces_sample_rate=0.00005 # avoid exceeding rate limits in Production
|
||||
)
|
||||
|
||||
logging.ignore_logger('notifications_python_client.*') # ignore logs about 404s, etc.
|
||||
|
||||
application = Flask('app')
|
||||
|
||||
create_app(application)
|
||||
|
||||
@@ -41,5 +41,3 @@ cryptography<3.4 # pyup: ignore
|
||||
# version 0.10.0 introduced exceptions when workers crashed due to deprecating lower case `prometheus_multiproc_dir`.
|
||||
prometheus-client>=0.9.0,!=0.10.0
|
||||
gds-metrics==0.2.4
|
||||
|
||||
sentry-sdk[flask]
|
||||
|
||||
@@ -18,7 +18,6 @@ blinker==1.4
|
||||
# via
|
||||
# -r requirements.in
|
||||
# gds-metrics
|
||||
# sentry-sdk
|
||||
boto3==1.17.84
|
||||
# via notifications-utils
|
||||
botocore==1.20.84
|
||||
@@ -32,7 +31,6 @@ certifi==2021.5.30
|
||||
# via
|
||||
# pyproj
|
||||
# requests
|
||||
# sentry-sdk
|
||||
cffi==1.14.5
|
||||
# via cryptography
|
||||
chardet==4.0.0
|
||||
@@ -67,7 +65,6 @@ flask==1.1.2
|
||||
# flask-wtf
|
||||
# gds-metrics
|
||||
# notifications-utils
|
||||
# sentry-sdk
|
||||
flask-login==0.5.0
|
||||
# via -r requirements.in
|
||||
flask-redis==0.4.0
|
||||
@@ -201,8 +198,6 @@ s3transfer==0.4.2
|
||||
# via
|
||||
# awscli
|
||||
# boto3
|
||||
sentry-sdk[flask]==1.5.1
|
||||
# via -r requirements.in
|
||||
shapely==1.7.1
|
||||
# via
|
||||
# -r requirements.in
|
||||
@@ -225,7 +220,6 @@ urllib3==1.26.5
|
||||
# via
|
||||
# botocore
|
||||
# requests
|
||||
# sentry-sdk
|
||||
webencodings==0.5.1
|
||||
# via bleach
|
||||
werkzeug==2.0.2
|
||||
|
||||
Reference in New Issue
Block a user