Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-notes-api
Commits
8d7407c6
Unverified
Commit
8d7407c6
authored
May 17, 2018
by
Cory Lee
Committed by
GitHub
May 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from edx/coryleeio/OPS-3008
Dont start newrelic transaction on heartbeat
parents
44a339f2
34b2ca49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
notesserver/views.py
+6
-1
No files found.
notesserver/views.py
View file @
8d7407c6
...
...
@@ -11,7 +11,10 @@ from rest_framework.response import Response
from
rest_framework.decorators
import
api_view
,
permission_classes
from
elasticsearch.exceptions
import
TransportError
try
:
import
newrelic.agent
except
ImportError
:
# pragma: no cover
newrelic
=
None
# pylint: disable=invalid-name
if
not
settings
.
ES_DISABLED
:
from
haystack
import
connections
...
...
@@ -37,6 +40,8 @@ def heartbeat(request): # pylint: disable=unused-argument
"""
ElasticSearch and database are reachable and ready to handle requests.
"""
if
newrelic
:
# pragma: no cover
newrelic
.
agent
.
ignore_transaction
()
try
:
db_status
()
except
Exception
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment