Unverified Commit 8401055b by Cory Lee Committed by GitHub

Merge pull request #765 from edx/coryleeio/OPS-3008

Dont start newrelic transaction on healthcheck
parents fa03bcbd 50b9c073
......@@ -14,7 +14,10 @@ from analyticsclient.client import Client
from analyticsclient.exceptions import TimeoutError
from analytics_dashboard.courses import permissions
try:
import newrelic.agent
except ImportError: # pragma: no cover
newrelic = None # pylint: disable=invalid-name
logger = logging.getLogger(__name__)
User = get_user_model()
......@@ -29,6 +32,8 @@ def status(_request):
def health(_request):
if newrelic: # pragma: no cover
newrelic.agent.ignore_transaction()
overall_status = analytics_api_status = database_status = UNAVAILABLE
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment