Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
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
cs_comments_service
Commits
b9277ab7
Commit
b9277ab7
authored
Nov 05, 2013
by
jimabramson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust new relic method tracing.
(also provide a switch for query-level debugging output from moped.)
parent
d3ba8bfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
app.rb
+13
-0
No files found.
app.rb
View file @
b9277ab7
...
...
@@ -30,6 +30,18 @@ if ["staging", "production", "loadtest", "edgestage","edgeprod"].include? enviro
add_method_tracer
:use
add_method_tracer
:login
end
Moped
::
Cluster
.
class_eval
do
include
NewRelic
::
Agent
::
MethodTracer
add_method_tracer
:with_primary
add_method_tracer
:nodes
end
Moped
::
Node
.
class_eval
do
include
NewRelic
::
Agent
::
MethodTracer
add_method_tracer
:command
add_method_tracer
:connect
add_method_tracer
:flush
add_method_tracer
:refresh
end
end
if
ENV
[
"ENABLE_GC_PROFILER"
]
...
...
@@ -45,6 +57,7 @@ end
Mongoid
.
load!
(
"config/mongoid.yml"
,
environment
)
Mongoid
.
logger
.
level
=
Logger
::
INFO
Moped
.
logger
.
level
=
ENV
[
"ENABLE_MOPED_DEBUGGING"
]
?
Logger
::
DEBUG
:
Logger
::
INFO
Dir
[
File
.
dirname
(
__FILE__
)
+
'/lib/**/*.rb'
].
each
{
|
file
|
require
file
}
Dir
[
File
.
dirname
(
__FILE__
)
+
'/models/*.rb'
].
each
{
|
file
|
require
file
}
...
...
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