mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-17 18:44:11 -05:00
@@ -1,24 +1,6 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import sentry_sdk
|
|
||||||
from flask import Flask
|
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
|
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')
|
application = Flask('app')
|
||||||
|
|
||||||
create_app(application)
|
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`.
|
# 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
|
prometheus-client>=0.9.0,!=0.10.0
|
||||||
gds-metrics==0.2.4
|
gds-metrics==0.2.4
|
||||||
|
|
||||||
sentry-sdk[flask]
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ blinker==1.4
|
|||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
# gds-metrics
|
# gds-metrics
|
||||||
# sentry-sdk
|
|
||||||
boto3==1.17.84
|
boto3==1.17.84
|
||||||
# via notifications-utils
|
# via notifications-utils
|
||||||
botocore==1.20.84
|
botocore==1.20.84
|
||||||
@@ -32,7 +31,6 @@ certifi==2021.5.30
|
|||||||
# via
|
# via
|
||||||
# pyproj
|
# pyproj
|
||||||
# requests
|
# requests
|
||||||
# sentry-sdk
|
|
||||||
cffi==1.14.5
|
cffi==1.14.5
|
||||||
# via cryptography
|
# via cryptography
|
||||||
chardet==4.0.0
|
chardet==4.0.0
|
||||||
@@ -67,7 +65,6 @@ flask==1.1.2
|
|||||||
# flask-wtf
|
# flask-wtf
|
||||||
# gds-metrics
|
# gds-metrics
|
||||||
# notifications-utils
|
# notifications-utils
|
||||||
# sentry-sdk
|
|
||||||
flask-login==0.5.0
|
flask-login==0.5.0
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
flask-redis==0.4.0
|
flask-redis==0.4.0
|
||||||
@@ -201,8 +198,6 @@ s3transfer==0.4.2
|
|||||||
# via
|
# via
|
||||||
# awscli
|
# awscli
|
||||||
# boto3
|
# boto3
|
||||||
sentry-sdk[flask]==1.5.1
|
|
||||||
# via -r requirements.in
|
|
||||||
shapely==1.7.1
|
shapely==1.7.1
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
@@ -225,7 +220,6 @@ urllib3==1.26.5
|
|||||||
# via
|
# via
|
||||||
# botocore
|
# botocore
|
||||||
# requests
|
# requests
|
||||||
# sentry-sdk
|
|
||||||
webencodings==0.5.1
|
webencodings==0.5.1
|
||||||
# via bleach
|
# via bleach
|
||||||
werkzeug==2.0.2
|
werkzeug==2.0.2
|
||||||
|
|||||||
Reference in New Issue
Block a user