genki-newrelic_rpm 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. data/CHANGELOG +316 -0
  2. data/LICENSE +37 -0
  3. data/Manifest +156 -0
  4. data/README.md +138 -0
  5. data/Rakefile +22 -0
  6. data/bin/mongrel_rpm +33 -0
  7. data/bin/newrelic_cmd +4 -0
  8. data/cert/cacert.pem +34 -0
  9. data/genki-newrelic_rpm.gemspec +32 -0
  10. data/init.rb +38 -0
  11. data/install.rb +37 -0
  12. data/lib/new_relic/agent.rb +280 -0
  13. data/lib/new_relic/agent/agent.rb +627 -0
  14. data/lib/new_relic/agent/chained_call.rb +13 -0
  15. data/lib/new_relic/agent/collection_helper.rb +61 -0
  16. data/lib/new_relic/agent/error_collector.rb +125 -0
  17. data/lib/new_relic/agent/instrumentation/active_merchant.rb +18 -0
  18. data/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb +83 -0
  19. data/lib/new_relic/agent/instrumentation/authlogic.rb +8 -0
  20. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +368 -0
  21. data/lib/new_relic/agent/instrumentation/data_mapper.rb +90 -0
  22. data/lib/new_relic/agent/instrumentation/dispatcher_instrumentation.rb +132 -0
  23. data/lib/new_relic/agent/instrumentation/memcache.rb +21 -0
  24. data/lib/new_relic/agent/instrumentation/merb/controller.rb +26 -0
  25. data/lib/new_relic/agent/instrumentation/merb/dispatcher.rb +13 -0
  26. data/lib/new_relic/agent/instrumentation/merb/errors.rb +8 -0
  27. data/lib/new_relic/agent/instrumentation/net.rb +12 -0
  28. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +20 -0
  29. data/lib/new_relic/agent/instrumentation/rack.rb +77 -0
  30. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +59 -0
  31. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +27 -0
  32. data/lib/new_relic/agent/instrumentation/rails/dispatcher.rb +38 -0
  33. data/lib/new_relic/agent/instrumentation/rails/errors.rb +27 -0
  34. data/lib/new_relic/agent/instrumentation/sinatra.rb +39 -0
  35. data/lib/new_relic/agent/method_tracer.rb +277 -0
  36. data/lib/new_relic/agent/patch_const_missing.rb +125 -0
  37. data/lib/new_relic/agent/sampler.rb +12 -0
  38. data/lib/new_relic/agent/samplers/cpu_sampler.rb +49 -0
  39. data/lib/new_relic/agent/samplers/memory_sampler.rb +137 -0
  40. data/lib/new_relic/agent/samplers/mongrel_sampler.rb +22 -0
  41. data/lib/new_relic/agent/shim_agent.rb +21 -0
  42. data/lib/new_relic/agent/stats_engine.rb +24 -0
  43. data/lib/new_relic/agent/stats_engine/metric_stats.rb +111 -0
  44. data/lib/new_relic/agent/stats_engine/samplers.rb +71 -0
  45. data/lib/new_relic/agent/stats_engine/transactions.rb +155 -0
  46. data/lib/new_relic/agent/transaction_sampler.rb +319 -0
  47. data/lib/new_relic/agent/worker_loop.rb +118 -0
  48. data/lib/new_relic/commands/deployments.rb +145 -0
  49. data/lib/new_relic/commands/new_relic_commands.rb +30 -0
  50. data/lib/new_relic/control.rb +436 -0
  51. data/lib/new_relic/control/external.rb +13 -0
  52. data/lib/new_relic/control/merb.rb +22 -0
  53. data/lib/new_relic/control/rails.rb +143 -0
  54. data/lib/new_relic/control/ruby.rb +34 -0
  55. data/lib/new_relic/control/sinatra.rb +14 -0
  56. data/lib/new_relic/histogram.rb +89 -0
  57. data/lib/new_relic/local_environment.rb +285 -0
  58. data/lib/new_relic/merbtasks.rb +6 -0
  59. data/lib/new_relic/metric_data.rb +44 -0
  60. data/lib/new_relic/metric_parser.rb +120 -0
  61. data/lib/new_relic/metric_parser/action_mailer.rb +9 -0
  62. data/lib/new_relic/metric_parser/active_merchant.rb +26 -0
  63. data/lib/new_relic/metric_parser/active_record.rb +25 -0
  64. data/lib/new_relic/metric_parser/controller.rb +54 -0
  65. data/lib/new_relic/metric_parser/controller_cpu.rb +38 -0
  66. data/lib/new_relic/metric_parser/errors.rb +6 -0
  67. data/lib/new_relic/metric_parser/external.rb +50 -0
  68. data/lib/new_relic/metric_parser/mem_cache.rb +12 -0
  69. data/lib/new_relic/metric_parser/view.rb +61 -0
  70. data/lib/new_relic/metric_parser/web_frontend.rb +14 -0
  71. data/lib/new_relic/metric_parser/web_service.rb +9 -0
  72. data/lib/new_relic/metric_spec.rb +52 -0
  73. data/lib/new_relic/metrics.rb +7 -0
  74. data/lib/new_relic/noticed_error.rb +25 -0
  75. data/lib/new_relic/rack/metric_app.rb +56 -0
  76. data/lib/new_relic/rack/newrelic.ru +25 -0
  77. data/lib/new_relic/rack/newrelic.yml +25 -0
  78. data/lib/new_relic/rack_app.rb +5 -0
  79. data/lib/new_relic/recipes.rb +82 -0
  80. data/lib/new_relic/stats.rb +360 -0
  81. data/lib/new_relic/transaction_analysis.rb +121 -0
  82. data/lib/new_relic/transaction_sample.rb +583 -0
  83. data/lib/new_relic/version.rb +54 -0
  84. data/lib/new_relic_api.rb +315 -0
  85. data/lib/newrelic_rpm.rb +40 -0
  86. data/lib/tasks/all.rb +4 -0
  87. data/lib/tasks/install.rake +7 -0
  88. data/lib/tasks/tests.rake +13 -0
  89. data/newrelic.yml +214 -0
  90. data/recipes/newrelic.rb +6 -0
  91. data/test/active_record_fixtures.rb +55 -0
  92. data/test/config/newrelic.yml +46 -0
  93. data/test/config/test_control.rb +39 -0
  94. data/test/new_relic/agent/active_record_instrumentation_test.rb +234 -0
  95. data/test/new_relic/agent/agent_controller_test.rb +107 -0
  96. data/test/new_relic/agent/agent_test.rb +117 -0
  97. data/test/new_relic/agent/agent_test_controller.rb +44 -0
  98. data/test/new_relic/agent/classloader_patch_test.rb +56 -0
  99. data/test/new_relic/agent/collection_helper_test.rb +118 -0
  100. data/test/new_relic/agent/dispatcher_instrumentation_test.rb +76 -0
  101. data/test/new_relic/agent/error_collector_test.rb +155 -0
  102. data/test/new_relic/agent/method_tracer_test.rb +335 -0
  103. data/test/new_relic/agent/metric_data_test.rb +56 -0
  104. data/test/new_relic/agent/mock_ar_connection.rb +40 -0
  105. data/test/new_relic/agent/mock_scope_listener.rb +23 -0
  106. data/test/new_relic/agent/net_instrumentation_test.rb +51 -0
  107. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +79 -0
  108. data/test/new_relic/agent/stats_engine/samplers_test.rb +78 -0
  109. data/test/new_relic/agent/stats_engine/stats_engine_test.rb +177 -0
  110. data/test/new_relic/agent/task_instrumentation_test.rb +67 -0
  111. data/test/new_relic/agent/testable_agent.rb +13 -0
  112. data/test/new_relic/agent/transaction_sample_builder_test.rb +195 -0
  113. data/test/new_relic/agent/transaction_sample_test.rb +146 -0
  114. data/test/new_relic/agent/transaction_sampler_test.rb +387 -0
  115. data/test/new_relic/agent/worker_loop_test.rb +103 -0
  116. data/test/new_relic/control_test.rb +94 -0
  117. data/test/new_relic/deployments_api_test.rb +68 -0
  118. data/test/new_relic/environment_test.rb +75 -0
  119. data/test/new_relic/metric_parser_test.rb +172 -0
  120. data/test/new_relic/metric_spec_test.rb +177 -0
  121. data/test/new_relic/shim_agent_test.rb +9 -0
  122. data/test/new_relic/stats_test.rb +291 -0
  123. data/test/new_relic/version_number_test.rb +74 -0
  124. data/test/test_helper.rb +38 -0
  125. data/test/ui/newrelic_controller_test.rb +14 -0
  126. data/test/ui/newrelic_helper_test.rb +53 -0
  127. data/ui/controllers/newrelic_controller.rb +214 -0
  128. data/ui/helpers/google_pie_chart.rb +55 -0
  129. data/ui/helpers/newrelic_helper.rb +314 -0
  130. data/ui/views/layouts/newrelic_default.rhtml +47 -0
  131. data/ui/views/newrelic/_explain_plans.rhtml +27 -0
  132. data/ui/views/newrelic/_sample.rhtml +15 -0
  133. data/ui/views/newrelic/_segment.rhtml +28 -0
  134. data/ui/views/newrelic/_segment_limit_message.rhtml +1 -0
  135. data/ui/views/newrelic/_segment_row.rhtml +14 -0
  136. data/ui/views/newrelic/_show_sample_detail.rhtml +24 -0
  137. data/ui/views/newrelic/_show_sample_sql.rhtml +20 -0
  138. data/ui/views/newrelic/_show_sample_summary.rhtml +3 -0
  139. data/ui/views/newrelic/_sql_row.rhtml +11 -0
  140. data/ui/views/newrelic/_stack_trace.rhtml +30 -0
  141. data/ui/views/newrelic/_table.rhtml +12 -0
  142. data/ui/views/newrelic/explain_sql.rhtml +42 -0
  143. data/ui/views/newrelic/images/arrow-close.png +0 -0
  144. data/ui/views/newrelic/images/arrow-open.png +0 -0
  145. data/ui/views/newrelic/images/blue_bar.gif +0 -0
  146. data/ui/views/newrelic/images/file_icon.png +0 -0
  147. data/ui/views/newrelic/images/gray_bar.gif +0 -0
  148. data/ui/views/newrelic/images/new_relic_rpm_desktop.gif +0 -0
  149. data/ui/views/newrelic/images/textmate.png +0 -0
  150. data/ui/views/newrelic/index.rhtml +45 -0
  151. data/ui/views/newrelic/javascript/prototype-scriptaculous.js +7288 -0
  152. data/ui/views/newrelic/javascript/transaction_sample.js +107 -0
  153. data/ui/views/newrelic/sample_not_found.rhtml +2 -0
  154. data/ui/views/newrelic/show_sample.rhtml +77 -0
  155. data/ui/views/newrelic/show_source.rhtml +3 -0
  156. data/ui/views/newrelic/stylesheets/style.css +433 -0
  157. data/ui/views/newrelic/threads.rhtml +52 -0
  158. metadata +327 -0
@@ -0,0 +1,316 @@
1
+ v2.10.1
2
+ * add support for textmate to dev mode
3
+ * preliminary sinatra support, displays actions named by the URI pattern matched
4
+ * added add_transaction_tracer method to support instrumenting methods as
5
+ if they were web transactions; this will facilitate better visibility of background
6
+ tasks and eventually things like rack, metal and Sinatra
7
+ * adjusted apdex scores to reflect time spent in the mongrel queue
8
+ * fixed incompatibility with JRuby on startup
9
+ * implmented CPU measure for JRuby which reflects the cpu burn for
10
+ all controller actions (does not include background tasks)
11
+ * fixed scope issue with GC instrumentation, subtracting time from caller
12
+ * added # of GC calls to GC instrumentation
13
+ * renamed the dispatcher metric
14
+ * refactored stats_engine code for readability
15
+
16
+ v2.10.0
17
+ * support unicorn
18
+ * instrumentation of GC for REE and MRE with GC patch
19
+ * support agent restarting when changes are made to the account
20
+ * removed #newrelic_notice_error from Object class, replaced by NewRelic::Agent#notic_error
21
+ * collect histogram statistics
22
+ * add custom parameters to newrelic_notice_error call to display
23
+ extra info for errors
24
+ * add method disable_all_tracing(&block) to execute a block without
25
+ capturing metrics
26
+ * newrelic_ignore now blocks all instrumentation collection for
27
+ the specified actions
28
+ * added doc to method_tracer API and removed second arg
29
+ requirement for add_method_tracer call
30
+ * instrumentation for Net::HTTP
31
+ * remove method_tracer shim to avoid timing problems in monitoring daemons
32
+ * for non-rails daemons, look at APP_ROOT and NRCONFIG env vars for custom locations
33
+
34
+ v2.9.6
35
+ * added support for validating agents in the cloud.
36
+
37
+ v2.9.5
38
+ * Snow Leopard memory fix
39
+
40
+ v2.9.4
41
+ * clamp size of data sent to server
42
+ * reset statistics for passenger when forking to avoid erroneous data
43
+ * fix problem deserializing errors from the server
44
+ * fix incompatibility with postgres introduced in 2.9.
45
+
46
+ v2.9.3.
47
+ * fix startup failure in Windows due to memory sampler
48
+ * add JRuby environment information
49
+
50
+ v2.9.2.
51
+ * change default apdex_t to 0.5 seconds
52
+ * fix bug in deployments introduced by multi_homed setting
53
+ * support overriding the log in the agent api
54
+ * fix JRuby problem using objectspace
55
+ * display custom parameters when looking at transactions in dev mode
56
+ * display count of sql statements on the list of transactions in dev mode
57
+ * fixes for merb--thanks to Carl Lerche
58
+
59
+ v2.9.1.
60
+ * add newrelic_ignore_apdex method to controller classes to allow
61
+ you to omit some actions from apdex statistics
62
+ * Add hook for Passenger shutdown events to get more timely shutdown
63
+ notices; this will help in more accurate memory readings in
64
+ Passenger
65
+ * add newrelic_notice_error to Object class
66
+ * optional ability to verify SSL certificates, note that this has some
67
+ performance and reliability implications
68
+ * support multi-homed host with multiple apps running on duplicate
69
+ ports
70
+
71
+ v2.9.0.
72
+ Noteworthy Enhancements
73
+ * give visibility to templates and partials in Rails 2.1 and later, in
74
+ dev mode and production
75
+ * change active record metrics to capture statistics in adapter log()
76
+ call, resulting in lower overhead and improved visibility into
77
+ different DB operations; only AR operations that are not hitting the
78
+ query cache will be measured to avoid overhead
79
+ * added mongrel_rpm to the gem, a standalone daemon listening for custom
80
+ metric values sent from local processes (experimental); do mongrel_rpm
81
+ --help
82
+ * add API for system monitoring daemons (refer to KB articles); changed
83
+ API for manual starting of the agent; refer to
84
+ NewRelic::Agent.manual_start for details
85
+ * do certificate verification on ssl connections to
86
+ collector.newrelic.com
87
+ * support instances appearing in more than one application by allowing a
88
+ semicolon separated list of names for the newrelic.yml app_name
89
+ setting.
90
+ * combined agent logfiles into a single logfile
91
+ * use rpm server time for transaction traces rather than agent time
92
+
93
+ Developer Mode (only) Enhancements
94
+ * show partial rendering in traces
95
+ * improved formatting of metric names in traces
96
+ * added number of queries to transactions in the transaction list
97
+ * added some sorting options for the transaction list
98
+ * added a page showing the list of active threads
99
+
100
+ Compatibility Enhancements
101
+ * ruby 1.9.1 compatibility
102
+ * support concurrency when determining busy times, for 2.2 compatibility
103
+ * in jruby, use Java used heap for memory sampling if the system memory
104
+ is not accessible from an unsupported platform
105
+ * jruby will no longer start the agent now when running the console or
106
+ rake tasks
107
+ * API support for RPM as a footnote add-in
108
+ * webrick support restored
109
+
110
+ Noteworthy bugfixes
111
+ * sample memory on linux by reading /proc/#{$$}/status file
112
+ * fixed ambiguous 'View' metrics showing up in controller breakdown
113
+ * removed Numeric extensions, including round_to, and to_ms
114
+ * using a different timeout mechanism when we post data to RPM
115
+ * remove usage of Rails::Info which had a side effect of enabling
116
+ ActiveRecord even when it wasn't an active framework
117
+ * moved CPU sampler off background thread and onto the harvest thread
118
+ * tests now run cleanly in any rails app using test:newrelic or
119
+ test:plugins
120
+
121
+ Agent improvements to support future RPM enhancements
122
+ * add instrumentation to capture metrics on response codes; not yet
123
+ working in rails 2.3.*
124
+ * added http referer to traced errors
125
+ * capture gem requirements from rails
126
+ * capture cpu utilization adjusted for processor count
127
+ * transaction sampling
128
+
129
+ v2.8.10.
130
+ * fix thin support with rails 2.3.2 when using script/server
131
+ * fix incompatibility with rails 2.3.2 and script/server options
132
+ processing
133
+ * minor tweak to environment gathering for gem mode
134
+
135
+ v2.8.9
136
+ * fix problem finding the newrelic controller in dev mode
137
+ * fix incompatibility with older versions of optparse
138
+ * fix potential jvm problem with jruby
139
+ * remove test:all task definition to avoid conflicts
140
+ * change error message about window sampler in windows not supported to a
141
+ warning message
142
+
143
+ v2.8.8
144
+ * fix error with jruby on windows
145
+ * fix problem where webrick was being incorrectly detected causing some
146
+ problems with mongrel application assignments--had to disable webrick
147
+ for now
148
+
149
+ v2.8.7
150
+ * fix for ssl connection hanging problems
151
+ * fix problem recognizing mongrel in rails 2.3.2
152
+ * fastcgi support in rails 2.3.2
153
+ * put back webrick support
154
+
155
+ v2.8.6
156
+ * fix for capture_params when using file uploads in controller actions
157
+ * use pure ruby NS lookup for collector host to eliminate possibly
158
+ blocking applications
159
+
160
+ v2.8.5
161
+ * fix reference to CommandError which was breaking some cap scripts
162
+ * fix incompatibility with Rails 2.0 in the server API
163
+ * fix problem with litespeed with Lite accounts
164
+ * fix problem when ActiveRecord is disabled
165
+ * moved merb instrumentation to Merb::Controller instead of
166
+ AbstractController to address incompatibility with MailController
167
+ * fix problem in devmode displaying sql with embedded urls
168
+
169
+ v2.8.4
170
+ * fix bug in capistrano recipe causing cap commands to fail with error
171
+ about not finding Version class
172
+
173
+ v2.8.3
174
+ * refactor unit tests so they will run in a generic rails environment
175
+ * require classes in advance to avoid autoloading. this is to address
176
+ incompatibilities with desert as well as more flexibility in gem
177
+ initialization
178
+ * fixed newrelic_helper.rb 1.9 incompatibility
179
+
180
+ v2.8.2
181
+ * fix Ruby 1.9 syntax compatibility errors
182
+ * update the class loading sanity check, will notify server of errors
183
+ * fix agent output on script and rake task execution
184
+
185
+ v2.8.1
186
+ * Convert the deployment information upload script to an executable and
187
+ put in the bin directory. When installed as a gem this command is
188
+ symlinked to /usr/bin. Usage: newrelic_cmd deployments --help
189
+ * Fix issue invoking api when host is not set in newrelic.yml
190
+ * Fix deployments api so it will work from a gem
191
+ * Fix thin incompatibility in developer mode
192
+
193
+ v2.8.0
194
+ * add beta of api in new_relic_api.rb
195
+ * instrumented dynamic finders in ActiveRecord
196
+ * preliminary support for capturing deployment information via capistrano
197
+ * change memory sampler for solaris to use /usr/bin/ps
198
+ * allow ERB in newrelic.yml file
199
+ * merged support for merb into this version
200
+ * fix incompatibility in the developer mode with the safe_erb plugin
201
+ * fix module namespace issue causing an error accessing
202
+ NewRelic::Instrumentation modules
203
+ * fix issue where the agent sometimes failed to start up if there was a
204
+ transient network problem
205
+ * fix IgnoreSilentlyException message
206
+
207
+ v2.7.4
208
+ * fix error when trying to serialize some kinds of Enumerable objects
209
+ * added extra debug logging
210
+ * added app_name to app mapping
211
+
212
+ v2.7.3
213
+ * fix compatibility issue with 1.8.5 causing error with Dir.glob
214
+
215
+ v2.7.2
216
+ * fix problem with passenger edge not being a detected environment
217
+
218
+ v2.7.1
219
+ * fix problem with skipped dispatcher instrumentation
220
+
221
+ v2.7.0
222
+ * Repackage to support both plugin and Gem installation
223
+ * Support passenger/litespeed/jruby application naming
224
+ * Update method for calculating dispatcher queue time
225
+ * Show stack traces in RPM Transaction Traces
226
+ * Capture error source for TemplateErrors
227
+ * Clean up error stack traces.
228
+ * Support query plans from postgres
229
+ * Performance tuning
230
+ * bugfixes
231
+
232
+ v2.5.3
233
+ * fix error in transaction tracing causing traces not to show up
234
+
235
+ v2.5.2
236
+ * fixes for postgres explain plan support
237
+
238
+ v2.5.1
239
+ * bugfixes
240
+
241
+ v2.5.0
242
+ * add agent support for rpm 1.1 features
243
+ * Fix regression error with thin support
244
+
245
+ v2.4.3
246
+ * added 'newrelic_ignore' controller class method with :except and :only options for finer grained control
247
+ over the blocking of instrumentation in controllers.
248
+ * bugfixes
249
+
250
+ v2.4.2
251
+ * error reporting in early access
252
+
253
+ v2.4.1
254
+ * bugfix: initializing developer mode
255
+
256
+ v2.4.0
257
+ * Beta support for LiteSpeed and Passenger
258
+
259
+ v2.3.7
260
+ * bugfixes
261
+
262
+ v2.3.6
263
+ * bugfixes
264
+
265
+ v2.3.5
266
+ * bugfixes: pie chart data, rails 1.1 compability
267
+
268
+ v2.3.4
269
+ * bugfix
270
+
271
+ v2.3.3
272
+ * bugfix for non-mysql databases
273
+
274
+ v2.3.2
275
+ * bugfixes
276
+ * Add enhancement for Transaction Traces early access feature
277
+
278
+ v2.3.1
279
+ * bugfixes
280
+
281
+ v2.3.0
282
+ + Add support for Transaction Traces early access feature
283
+
284
+ v2.2.2
285
+ * bugfixes
286
+
287
+ v2.2.1
288
+ + Add rails 2.1 support for Developer Mode
289
+ + Changes to memory sampler: Add support for JRuby and fix Solaris support.
290
+ * Stop catching exceptions and start catching StandardError; other exception cleanup
291
+ * Add protective exception catching to the stats engine
292
+ * Improved support for thin domain sockets
293
+ * Support JRuby environments
294
+
295
+ v2.1.6
296
+ * bugfixes
297
+
298
+ v2.1.5
299
+ * bugfixes
300
+
301
+ v2.1.4
302
+ * bugfixes
303
+
304
+ v2.1.3
305
+ * bugfixes
306
+
307
+ v2.1.2
308
+ * bugfixes
309
+
310
+ v2.1.1
311
+ * bugfixes
312
+
313
+ v2.1.0
314
+ * release for private beta
315
+
316
+
data/LICENSE ADDED
@@ -0,0 +1,37 @@
1
+ Copyright (c) 2008-2009 New Relic, Inc. All rights reserved.
2
+
3
+ Certain inventions disclosed in this file may be claimed within
4
+ patents owned or patent applications filed by New Relic, Inc. or third
5
+ parties.
6
+
7
+ Subject to the terms of this notice, New Relic grants you a
8
+ nonexclusive, nontransferable license, without the right to
9
+ sublicense, to (a) install and execute one copy of these files on any
10
+ number of workstations owned or controlled by you and (b) distribute
11
+ verbatim copies of these files to third parties. As a condition to the
12
+ foregoing grant, you must provide this notice along with each copy you
13
+ distribute and you must not remove, alter, or obscure this notice. All
14
+ other use, reproduction, modification, distribution, or other
15
+ exploitation of these files is strictly prohibited, except as may be set
16
+ forth in a separate written license agreement between you and New
17
+ Relic. The terms of any such license agreement will control over this
18
+ notice. The license stated above will be automatically terminated and
19
+ revoked if you exceed its scope or violate any of the terms of this
20
+ notice.
21
+
22
+ This License does not grant permission to use the trade names,
23
+ trademarks, service marks, or product names of New Relic, except as
24
+ required for reasonable and customary use in describing the origin of
25
+ this file and reproducing the content of this notice. You may not
26
+ mark or brand this file with any trade name, trademarks, service
27
+ marks, or product names other than the original brand (if any)
28
+ provided by New Relic.
29
+
30
+ Unless otherwise expressly agreed by New Relic in a separate written
31
+ license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
32
+ ANY KIND, including without any implied warranties of MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT. As a
34
+ condition to your use of these files, you are solely responsible for
35
+ such use. New Relic will have no liability to you for direct,
36
+ indirect, consequential, incidental, special, or punitive damages or
37
+ for lost profits or data.
@@ -0,0 +1,156 @@
1
+ CHANGELOG
2
+ LICENSE
3
+ README.md
4
+ Rakefile
5
+ bin/mongrel_rpm
6
+ bin/newrelic_cmd
7
+ cert/cacert.pem
8
+ init.rb
9
+ install.rb
10
+ lib/new_relic/agent.rb
11
+ lib/new_relic/agent/agent.rb
12
+ lib/new_relic/agent/chained_call.rb
13
+ lib/new_relic/agent/collection_helper.rb
14
+ lib/new_relic/agent/error_collector.rb
15
+ lib/new_relic/agent/instrumentation/active_merchant.rb
16
+ lib/new_relic/agent/instrumentation/active_record_instrumentation.rb
17
+ lib/new_relic/agent/instrumentation/authlogic.rb
18
+ lib/new_relic/agent/instrumentation/controller_instrumentation.rb
19
+ lib/new_relic/agent/instrumentation/data_mapper.rb
20
+ lib/new_relic/agent/instrumentation/dispatcher_instrumentation.rb
21
+ lib/new_relic/agent/instrumentation/memcache.rb
22
+ lib/new_relic/agent/instrumentation/merb/controller.rb
23
+ lib/new_relic/agent/instrumentation/merb/dispatcher.rb
24
+ lib/new_relic/agent/instrumentation/merb/errors.rb
25
+ lib/new_relic/agent/instrumentation/net.rb
26
+ lib/new_relic/agent/instrumentation/passenger_instrumentation.rb
27
+ lib/new_relic/agent/instrumentation/rack.rb
28
+ lib/new_relic/agent/instrumentation/rails/action_controller.rb
29
+ lib/new_relic/agent/instrumentation/rails/action_web_service.rb
30
+ lib/new_relic/agent/instrumentation/rails/dispatcher.rb
31
+ lib/new_relic/agent/instrumentation/rails/errors.rb
32
+ lib/new_relic/agent/instrumentation/sinatra.rb
33
+ lib/new_relic/agent/method_tracer.rb
34
+ lib/new_relic/agent/patch_const_missing.rb
35
+ lib/new_relic/agent/sampler.rb
36
+ lib/new_relic/agent/samplers/cpu_sampler.rb
37
+ lib/new_relic/agent/samplers/memory_sampler.rb
38
+ lib/new_relic/agent/samplers/mongrel_sampler.rb
39
+ lib/new_relic/agent/shim_agent.rb
40
+ lib/new_relic/agent/stats_engine.rb
41
+ lib/new_relic/agent/stats_engine/metric_stats.rb
42
+ lib/new_relic/agent/stats_engine/samplers.rb
43
+ lib/new_relic/agent/stats_engine/transactions.rb
44
+ lib/new_relic/agent/transaction_sampler.rb
45
+ lib/new_relic/agent/worker_loop.rb
46
+ lib/new_relic/commands/deployments.rb
47
+ lib/new_relic/commands/new_relic_commands.rb
48
+ lib/new_relic/control.rb
49
+ lib/new_relic/control/external.rb
50
+ lib/new_relic/control/merb.rb
51
+ lib/new_relic/control/rails.rb
52
+ lib/new_relic/control/ruby.rb
53
+ lib/new_relic/control/sinatra.rb
54
+ lib/new_relic/histogram.rb
55
+ lib/new_relic/local_environment.rb
56
+ lib/new_relic/merbtasks.rb
57
+ lib/new_relic/metric_data.rb
58
+ lib/new_relic/metric_parser.rb
59
+ lib/new_relic/metric_parser/action_mailer.rb
60
+ lib/new_relic/metric_parser/active_merchant.rb
61
+ lib/new_relic/metric_parser/active_record.rb
62
+ lib/new_relic/metric_parser/controller.rb
63
+ lib/new_relic/metric_parser/controller_cpu.rb
64
+ lib/new_relic/metric_parser/errors.rb
65
+ lib/new_relic/metric_parser/external.rb
66
+ lib/new_relic/metric_parser/mem_cache.rb
67
+ lib/new_relic/metric_parser/view.rb
68
+ lib/new_relic/metric_parser/web_frontend.rb
69
+ lib/new_relic/metric_parser/web_service.rb
70
+ lib/new_relic/metric_spec.rb
71
+ lib/new_relic/metrics.rb
72
+ lib/new_relic/noticed_error.rb
73
+ lib/new_relic/rack/metric_app.rb
74
+ lib/new_relic/rack/newrelic.ru
75
+ lib/new_relic/rack/newrelic.yml
76
+ lib/new_relic/rack_app.rb
77
+ lib/new_relic/recipes.rb
78
+ lib/new_relic/stats.rb
79
+ lib/new_relic/transaction_analysis.rb
80
+ lib/new_relic/transaction_sample.rb
81
+ lib/new_relic/version.rb
82
+ lib/new_relic_api.rb
83
+ lib/newrelic_rpm.rb
84
+ lib/tasks/all.rb
85
+ lib/tasks/install.rake
86
+ lib/tasks/tests.rake
87
+ newrelic.yml
88
+ recipes/newrelic.rb
89
+ test/active_record_fixtures.rb
90
+ test/config/newrelic.yml
91
+ test/config/test_control.rb
92
+ test/new_relic/agent/active_record_instrumentation_test.rb
93
+ test/new_relic/agent/agent_controller_test.rb
94
+ test/new_relic/agent/agent_test.rb
95
+ test/new_relic/agent/agent_test_controller.rb
96
+ test/new_relic/agent/classloader_patch_test.rb
97
+ test/new_relic/agent/collection_helper_test.rb
98
+ test/new_relic/agent/dispatcher_instrumentation_test.rb
99
+ test/new_relic/agent/error_collector_test.rb
100
+ test/new_relic/agent/method_tracer_test.rb
101
+ test/new_relic/agent/metric_data_test.rb
102
+ test/new_relic/agent/mock_ar_connection.rb
103
+ test/new_relic/agent/mock_scope_listener.rb
104
+ test/new_relic/agent/net_instrumentation_test.rb
105
+ test/new_relic/agent/stats_engine/metric_stats_test.rb
106
+ test/new_relic/agent/stats_engine/samplers_test.rb
107
+ test/new_relic/agent/stats_engine/stats_engine_test.rb
108
+ test/new_relic/agent/task_instrumentation_test.rb
109
+ test/new_relic/agent/testable_agent.rb
110
+ test/new_relic/agent/transaction_sample_builder_test.rb
111
+ test/new_relic/agent/transaction_sample_test.rb
112
+ test/new_relic/agent/transaction_sampler_test.rb
113
+ test/new_relic/agent/worker_loop_test.rb
114
+ test/new_relic/control_test.rb
115
+ test/new_relic/deployments_api_test.rb
116
+ test/new_relic/environment_test.rb
117
+ test/new_relic/metric_parser_test.rb
118
+ test/new_relic/metric_spec_test.rb
119
+ test/new_relic/shim_agent_test.rb
120
+ test/new_relic/stats_test.rb
121
+ test/new_relic/version_number_test.rb
122
+ test/test_helper.rb
123
+ test/ui/newrelic_controller_test.rb
124
+ test/ui/newrelic_helper_test.rb
125
+ ui/controllers/newrelic_controller.rb
126
+ ui/helpers/google_pie_chart.rb
127
+ ui/helpers/newrelic_helper.rb
128
+ ui/views/layouts/newrelic_default.rhtml
129
+ ui/views/newrelic/_explain_plans.rhtml
130
+ ui/views/newrelic/_sample.rhtml
131
+ ui/views/newrelic/_segment.rhtml
132
+ ui/views/newrelic/_segment_limit_message.rhtml
133
+ ui/views/newrelic/_segment_row.rhtml
134
+ ui/views/newrelic/_show_sample_detail.rhtml
135
+ ui/views/newrelic/_show_sample_sql.rhtml
136
+ ui/views/newrelic/_show_sample_summary.rhtml
137
+ ui/views/newrelic/_sql_row.rhtml
138
+ ui/views/newrelic/_stack_trace.rhtml
139
+ ui/views/newrelic/_table.rhtml
140
+ ui/views/newrelic/explain_sql.rhtml
141
+ ui/views/newrelic/images/arrow-close.png
142
+ ui/views/newrelic/images/arrow-open.png
143
+ ui/views/newrelic/images/blue_bar.gif
144
+ ui/views/newrelic/images/file_icon.png
145
+ ui/views/newrelic/images/gray_bar.gif
146
+ ui/views/newrelic/images/new_relic_rpm_desktop.gif
147
+ ui/views/newrelic/images/textmate.png
148
+ ui/views/newrelic/index.rhtml
149
+ ui/views/newrelic/javascript/prototype-scriptaculous.js
150
+ ui/views/newrelic/javascript/transaction_sample.js
151
+ ui/views/newrelic/sample_not_found.rhtml
152
+ ui/views/newrelic/show_sample.rhtml
153
+ ui/views/newrelic/show_source.rhtml
154
+ ui/views/newrelic/stylesheets/style.css
155
+ ui/views/newrelic/threads.rhtml
156
+ Manifest