Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
be0a5f3c
Commit
be0a5f3c
authored
Jun 08, 2017
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ran isort on file.
parent
052492db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
openedx/core/djangoapps/monitoring_utils/middleware.py
+7
-5
No files found.
openedx/core/djangoapps/monitoring_utils/middleware.py
View file @
be0a5f3c
...
@@ -10,6 +10,13 @@ request handlers which do not record custom metrics.
...
@@ -10,6 +10,13 @@ request handlers which do not record custom metrics.
"""
"""
import
logging
import
logging
from
uuid
import
uuid4
import
psutil
import
request_cache
from
openedx.core.djangoapps.waffle_utils
import
WaffleSwitchNamespace
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
try
:
try
:
import
newrelic.agent
import
newrelic.agent
...
@@ -17,11 +24,6 @@ except ImportError:
...
@@ -17,11 +24,6 @@ except ImportError:
log
.
warning
(
"Unable to load NewRelic agent module"
)
log
.
warning
(
"Unable to load NewRelic agent module"
)
newrelic
=
None
# pylint: disable=invalid-name
newrelic
=
None
# pylint: disable=invalid-name
import
psutil
import
request_cache
from
uuid
import
uuid4
from
openedx.core.djangoapps.waffle_utils
import
WaffleSwitchNamespace
REQUEST_CACHE_KEY
=
'monitoring_custom_metrics'
REQUEST_CACHE_KEY
=
'monitoring_custom_metrics'
WAFFLE_NAMESPACE
=
'monitoring_utils'
WAFFLE_NAMESPACE
=
'monitoring_utils'
...
...
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