Removed statsd from the api and use the statsd in the utils library.

The statsd code was added to the utils library a while ago, uses the
statsd from the util library and therefore consolidates the code into
once place.
This commit is contained in:
Richard Chapman
2018-02-06 09:35:33 +00:00
parent 8696f8995d
commit d855b4e4ec
17 changed files with 18 additions and 79 deletions

View File

@@ -1,13 +1,13 @@
from celery.signals import worker_process_shutdown
from flask import current_app
from notifications_utils.recipients import InvalidEmailError
from notifications_utils.statsd_decorators import statsd
from sqlalchemy.orm.exc import NoResultFound
from app import notify_celery
from app.config import QueueNames
from app.dao import notifications_dao
from app.dao.notifications_dao import update_notification_status_by_id
from app.statsd_decorators import statsd
from app.delivery import send_to_providers