dolores_rpm 3.2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. data/CHANGELOG +559 -0
  2. data/LICENSE +64 -0
  3. data/README.rdoc +179 -0
  4. data/bin/mongrel_rpm +33 -0
  5. data/bin/newrelic +13 -0
  6. data/bin/newrelic_cmd +5 -0
  7. data/cert/cacert.pem +118 -0
  8. data/cert/oldsite.pem +28 -0
  9. data/cert/site.pem +27 -0
  10. data/dolores_rpm-3.3.4.fork.gem +0 -0
  11. data/install.rb +9 -0
  12. data/lib/conditional_vendored_dependency_detection.rb +3 -0
  13. data/lib/conditional_vendored_metric_parser.rb +5 -0
  14. data/lib/new_relic/agent/agent.rb +1311 -0
  15. data/lib/new_relic/agent/beacon_configuration.rb +110 -0
  16. data/lib/new_relic/agent/browser_monitoring.rb +102 -0
  17. data/lib/new_relic/agent/busy_calculator.rb +99 -0
  18. data/lib/new_relic/agent/chained_call.rb +13 -0
  19. data/lib/new_relic/agent/database.rb +203 -0
  20. data/lib/new_relic/agent/error_collector.rb +251 -0
  21. data/lib/new_relic/agent/instrumentation/active_merchant.rb +27 -0
  22. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +68 -0
  23. data/lib/new_relic/agent/instrumentation/authlogic.rb +19 -0
  24. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +424 -0
  25. data/lib/new_relic/agent/instrumentation/data_mapper.rb +57 -0
  26. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +52 -0
  27. data/lib/new_relic/agent/instrumentation/memcache.rb +80 -0
  28. data/lib/new_relic/agent/instrumentation/merb/controller.rb +41 -0
  29. data/lib/new_relic/agent/instrumentation/merb/errors.rb +29 -0
  30. data/lib/new_relic/agent/instrumentation/metric_frame/pop.rb +80 -0
  31. data/lib/new_relic/agent/instrumentation/metric_frame.rb +332 -0
  32. data/lib/new_relic/agent/instrumentation/net.rb +29 -0
  33. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +36 -0
  34. data/lib/new_relic/agent/instrumentation/queue_time.rb +210 -0
  35. data/lib/new_relic/agent/instrumentation/rack.rb +98 -0
  36. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +114 -0
  37. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +42 -0
  38. data/lib/new_relic/agent/instrumentation/rails/active_record_instrumentation.rb +115 -0
  39. data/lib/new_relic/agent/instrumentation/rails/errors.rb +42 -0
  40. data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +118 -0
  41. data/lib/new_relic/agent/instrumentation/rails3/active_record_instrumentation.rb +122 -0
  42. data/lib/new_relic/agent/instrumentation/rails3/errors.rb +37 -0
  43. data/lib/new_relic/agent/instrumentation/sinatra.rb +58 -0
  44. data/lib/new_relic/agent/instrumentation/sunspot.rb +29 -0
  45. data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +21 -0
  46. data/lib/new_relic/agent/instrumentation.rb +9 -0
  47. data/lib/new_relic/agent/method_tracer.rb +528 -0
  48. data/lib/new_relic/agent/sampler.rb +50 -0
  49. data/lib/new_relic/agent/samplers/cpu_sampler.rb +58 -0
  50. data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +40 -0
  51. data/lib/new_relic/agent/samplers/memory_sampler.rb +144 -0
  52. data/lib/new_relic/agent/samplers/object_sampler.rb +26 -0
  53. data/lib/new_relic/agent/shim_agent.rb +29 -0
  54. data/lib/new_relic/agent/sql_sampler.rb +267 -0
  55. data/lib/new_relic/agent/stats_engine/metric_stats.rb +187 -0
  56. data/lib/new_relic/agent/stats_engine/samplers.rb +95 -0
  57. data/lib/new_relic/agent/stats_engine/transactions.rb +208 -0
  58. data/lib/new_relic/agent/stats_engine.rb +25 -0
  59. data/lib/new_relic/agent/transaction_sample_builder.rb +101 -0
  60. data/lib/new_relic/agent/transaction_sampler.rb +397 -0
  61. data/lib/new_relic/agent/worker_loop.rb +89 -0
  62. data/lib/new_relic/agent.rb +454 -0
  63. data/lib/new_relic/collection_helper.rb +75 -0
  64. data/lib/new_relic/command.rb +85 -0
  65. data/lib/new_relic/commands/deployments.rb +105 -0
  66. data/lib/new_relic/commands/install.rb +80 -0
  67. data/lib/new_relic/control/class_methods.rb +53 -0
  68. data/lib/new_relic/control/configuration.rb +202 -0
  69. data/lib/new_relic/control/frameworks/external.rb +16 -0
  70. data/lib/new_relic/control/frameworks/merb.rb +31 -0
  71. data/lib/new_relic/control/frameworks/rails.rb +164 -0
  72. data/lib/new_relic/control/frameworks/rails3.rb +75 -0
  73. data/lib/new_relic/control/frameworks/ruby.rb +42 -0
  74. data/lib/new_relic/control/frameworks/sinatra.rb +20 -0
  75. data/lib/new_relic/control/frameworks.rb +10 -0
  76. data/lib/new_relic/control/instance_methods.rb +179 -0
  77. data/lib/new_relic/control/instrumentation.rb +100 -0
  78. data/lib/new_relic/control/logging_methods.rb +143 -0
  79. data/lib/new_relic/control/profiling.rb +25 -0
  80. data/lib/new_relic/control/server_methods.rb +114 -0
  81. data/lib/new_relic/control.rb +46 -0
  82. data/lib/new_relic/data_serialization.rb +157 -0
  83. data/lib/new_relic/delayed_job_injection.rb +46 -0
  84. data/lib/new_relic/language_support.rb +69 -0
  85. data/lib/new_relic/local_environment.rb +414 -0
  86. data/lib/new_relic/merbtasks.rb +6 -0
  87. data/lib/new_relic/metric_data.rb +51 -0
  88. data/lib/new_relic/metric_spec.rb +75 -0
  89. data/lib/new_relic/metrics.rb +9 -0
  90. data/lib/new_relic/noticed_error.rb +24 -0
  91. data/lib/new_relic/rack/browser_monitoring.rb +68 -0
  92. data/lib/new_relic/rack/developer_mode.rb +268 -0
  93. data/lib/new_relic/recipes.rb +73 -0
  94. data/lib/new_relic/stats.rb +388 -0
  95. data/lib/new_relic/timer_lib.rb +27 -0
  96. data/lib/new_relic/transaction_analysis/segment_summary.rb +49 -0
  97. data/lib/new_relic/transaction_analysis.rb +77 -0
  98. data/lib/new_relic/transaction_sample/composite_segment.rb +27 -0
  99. data/lib/new_relic/transaction_sample/fake_segment.rb +9 -0
  100. data/lib/new_relic/transaction_sample/segment.rb +201 -0
  101. data/lib/new_relic/transaction_sample/summary_segment.rb +21 -0
  102. data/lib/new_relic/transaction_sample.rb +245 -0
  103. data/lib/new_relic/url_rule.rb +14 -0
  104. data/lib/new_relic/version.rb +55 -0
  105. data/lib/newrelic_rpm.rb +49 -0
  106. data/lib/tasks/all.rb +4 -0
  107. data/lib/tasks/install.rake +7 -0
  108. data/lib/tasks/tests.rake +19 -0
  109. data/newrelic.yml +265 -0
  110. data/recipes/newrelic.rb +6 -0
  111. data/test/active_record_fixtures.rb +77 -0
  112. data/test/config/newrelic.yml +48 -0
  113. data/test/config/test_control.rb +48 -0
  114. data/test/new_relic/agent/agent/connect_test.rb +410 -0
  115. data/test/new_relic/agent/agent/start_test.rb +255 -0
  116. data/test/new_relic/agent/agent/start_worker_thread_test.rb +153 -0
  117. data/test/new_relic/agent/agent_test.rb +139 -0
  118. data/test/new_relic/agent/agent_test_controller.rb +77 -0
  119. data/test/new_relic/agent/agent_test_controller_test.rb +363 -0
  120. data/test/new_relic/agent/apdex_from_server_test.rb +9 -0
  121. data/test/new_relic/agent/beacon_configuration_test.rb +108 -0
  122. data/test/new_relic/agent/browser_monitoring_test.rb +278 -0
  123. data/test/new_relic/agent/busy_calculator_test.rb +81 -0
  124. data/test/new_relic/agent/database_test.rb +162 -0
  125. data/test/new_relic/agent/error_collector/notice_error_test.rb +257 -0
  126. data/test/new_relic/agent/error_collector_test.rb +175 -0
  127. data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +538 -0
  128. data/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +36 -0
  129. data/test/new_relic/agent/instrumentation/instrumentation_test.rb +11 -0
  130. data/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb +172 -0
  131. data/test/new_relic/agent/instrumentation/metric_frame_test.rb +50 -0
  132. data/test/new_relic/agent/instrumentation/net_instrumentation_test.rb +84 -0
  133. data/test/new_relic/agent/instrumentation/queue_time_test.rb +387 -0
  134. data/test/new_relic/agent/instrumentation/rack_test.rb +35 -0
  135. data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +184 -0
  136. data/test/new_relic/agent/memcache_instrumentation_test.rb +143 -0
  137. data/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +164 -0
  138. data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +234 -0
  139. data/test/new_relic/agent/method_tracer_test.rb +386 -0
  140. data/test/new_relic/agent/mock_scope_listener.rb +23 -0
  141. data/test/new_relic/agent/rpm_agent_test.rb +149 -0
  142. data/test/new_relic/agent/sampler_test.rb +19 -0
  143. data/test/new_relic/agent/shim_agent_test.rb +20 -0
  144. data/test/new_relic/agent/sql_sampler_test.rb +160 -0
  145. data/test/new_relic/agent/stats_engine/metric_stats/harvest_test.rb +150 -0
  146. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +82 -0
  147. data/test/new_relic/agent/stats_engine/samplers_test.rb +99 -0
  148. data/test/new_relic/agent/stats_engine_test.rb +185 -0
  149. data/test/new_relic/agent/transaction_sample_builder_test.rb +195 -0
  150. data/test/new_relic/agent/transaction_sampler_test.rb +955 -0
  151. data/test/new_relic/agent/worker_loop_test.rb +66 -0
  152. data/test/new_relic/agent_test.rb +175 -0
  153. data/test/new_relic/collection_helper_test.rb +149 -0
  154. data/test/new_relic/command/deployments_test.rb +68 -0
  155. data/test/new_relic/control/class_methods_test.rb +62 -0
  156. data/test/new_relic/control/configuration_test.rb +72 -0
  157. data/test/new_relic/control/logging_methods_test.rb +185 -0
  158. data/test/new_relic/control_test.rb +254 -0
  159. data/test/new_relic/data_serialization_test.rb +208 -0
  160. data/test/new_relic/delayed_job_injection_test.rb +16 -0
  161. data/test/new_relic/local_environment_test.rb +72 -0
  162. data/test/new_relic/metric_data_test.rb +125 -0
  163. data/test/new_relic/metric_spec_test.rb +95 -0
  164. data/test/new_relic/rack/all_test.rb +11 -0
  165. data/test/new_relic/rack/browser_monitoring_test.rb +84 -0
  166. data/test/new_relic/rack/developer_mode_helper_test.rb +141 -0
  167. data/test/new_relic/rack/developer_mode_test.rb +43 -0
  168. data/test/new_relic/stats_test.rb +426 -0
  169. data/test/new_relic/transaction_analysis/segment_summary_test.rb +91 -0
  170. data/test/new_relic/transaction_analysis_test.rb +121 -0
  171. data/test/new_relic/transaction_sample/composite_segment_test.rb +35 -0
  172. data/test/new_relic/transaction_sample/fake_segment_test.rb +17 -0
  173. data/test/new_relic/transaction_sample/segment_test.rb +389 -0
  174. data/test/new_relic/transaction_sample/summary_segment_test.rb +31 -0
  175. data/test/new_relic/transaction_sample_subtest_test.rb +56 -0
  176. data/test/new_relic/transaction_sample_test.rb +164 -0
  177. data/test/new_relic/version_number_test.rb +89 -0
  178. data/test/test_contexts.rb +29 -0
  179. data/test/test_helper.rb +154 -0
  180. data/ui/helpers/developer_mode_helper.rb +357 -0
  181. data/ui/helpers/google_pie_chart.rb +48 -0
  182. data/ui/views/layouts/newrelic_default.rhtml +47 -0
  183. data/ui/views/newrelic/_explain_plans.rhtml +27 -0
  184. data/ui/views/newrelic/_sample.rhtml +20 -0
  185. data/ui/views/newrelic/_segment.rhtml +28 -0
  186. data/ui/views/newrelic/_segment_limit_message.rhtml +1 -0
  187. data/ui/views/newrelic/_segment_row.rhtml +12 -0
  188. data/ui/views/newrelic/_show_sample_detail.rhtml +24 -0
  189. data/ui/views/newrelic/_show_sample_sql.rhtml +24 -0
  190. data/ui/views/newrelic/_show_sample_summary.rhtml +3 -0
  191. data/ui/views/newrelic/_sql_row.rhtml +16 -0
  192. data/ui/views/newrelic/_stack_trace.rhtml +15 -0
  193. data/ui/views/newrelic/_table.rhtml +12 -0
  194. data/ui/views/newrelic/explain_sql.rhtml +43 -0
  195. data/ui/views/newrelic/file/images/arrow-close.png +0 -0
  196. data/ui/views/newrelic/file/images/arrow-open.png +0 -0
  197. data/ui/views/newrelic/file/images/blue_bar.gif +0 -0
  198. data/ui/views/newrelic/file/images/file_icon.png +0 -0
  199. data/ui/views/newrelic/file/images/gray_bar.gif +0 -0
  200. data/ui/views/newrelic/file/images/new-relic-rpm-desktop.gif +0 -0
  201. data/ui/views/newrelic/file/images/new_relic_rpm_desktop.gif +0 -0
  202. data/ui/views/newrelic/file/images/textmate.png +0 -0
  203. data/ui/views/newrelic/file/javascript/jquery-1.4.2.js +6240 -0
  204. data/ui/views/newrelic/file/javascript/transaction_sample.js +120 -0
  205. data/ui/views/newrelic/file/stylesheets/style.css +490 -0
  206. data/ui/views/newrelic/index.rhtml +71 -0
  207. data/ui/views/newrelic/sample_not_found.rhtml +2 -0
  208. data/ui/views/newrelic/show_sample.rhtml +80 -0
  209. data/ui/views/newrelic/show_source.rhtml +3 -0
  210. data/ui/views/newrelic/threads.rhtml +53 -0
  211. data/vendor/gems/dependency_detection-0.0.1.build/LICENSE +5 -0
  212. data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb +3 -0
  213. data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb +62 -0
  214. data/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +1 -0
  215. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb +14 -0
  216. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb +31 -0
  217. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb +33 -0
  218. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb +89 -0
  219. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb +7 -0
  220. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb +46 -0
  221. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb +67 -0
  222. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb +43 -0
  223. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb +17 -0
  224. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb +48 -0
  225. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb +24 -0
  226. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb +28 -0
  227. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb +17 -0
  228. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb +11 -0
  229. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb +55 -0
  230. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb +40 -0
  231. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb +20 -0
  232. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb +7 -0
  233. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb +31 -0
  234. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb +17 -0
  235. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb +34 -0
  236. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb +7 -0
  237. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb +55 -0
  238. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb +122 -0
  239. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb +27 -0
  240. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb +40 -0
  241. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb +7 -0
  242. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb +7 -0
  243. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb +7 -0
  244. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb +27 -0
  245. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb +15 -0
  246. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb +54 -0
  247. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb +6 -0
  248. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb +6 -0
  249. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb +20 -0
  250. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb +20 -0
  251. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb +5 -0
  252. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb +70 -0
  253. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb +18 -0
  254. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb +14 -0
  255. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb +133 -0
  256. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb +64 -0
  257. metadata +398 -0
data/CHANGELOG ADDED
@@ -0,0 +1,559 @@
1
+ v3.2.0.2
2
+ * Roll back to previous version of DataMapper instrumentation (current one does not work for our app)
3
+
4
+ v3.2.0.1
5
+ * Updated LICENSE
6
+ * Updated links to support docs
7
+
8
+ v3.2.0
9
+ * Fix over-detection of mongrel and unicorn and only start the agent when
10
+ actual server is running
11
+ * Improve developer mode backtraces to support ruby 1.9.2, windows
12
+ * Fixed some cases where Memcache instrumentation was failing to load
13
+ * Ability to set log destination by NEW_RELIC_LOG env var
14
+ * Fix to mutex lib load issue
15
+ * Performance enhancements (thanks to Jeremy Kemper)
16
+ * Fix overly verbose STDOUT message (thanks to Anselm Helbig)
17
+
18
+ v3.1.2
19
+ * Fixed some thread safety issues
20
+ * Work around for Ruby 1.8.7 Marshal crash bug
21
+ * Numerous community patches (Gabriel Horner, Bradley Harris, Diego Garcia,
22
+ Tommy Sullivan, Greg Hazel, John Thomas Marino, Paul Elliott, Pan Thomakos)
23
+ * Fixed RUM instrumentation bug
24
+
25
+ v3.1.1
26
+ * Support for Rails 3.1 (thanks to Ben Hoskings via github)
27
+ * Support for Rubinius
28
+ * Fixed issues affecting some Delayed Job users where log files were not appearing
29
+ * Fixed an issue where some instrumentation might not get loaded in Rails apps
30
+ * Fix for memcached cas method (thanks to Andrew Long and Joseph Palermo )
31
+ * Fix for logger deprecation warning (thanks to Jonathan del Strother via github)
32
+ * Support for logging to STDOUT
33
+ * Support for Spymemcached client on jruby
34
+
35
+ v3.1.0
36
+ * Support for aggregating data from short-running
37
+ processes to reduce reporting overhead
38
+ * Numerous bug fixes
39
+ * Increased unit test coverage
40
+
41
+ v3.0.1
42
+ * Updated Real User Monitoring to reduce javascript size and improve
43
+ compatibility, fix a few known bugs
44
+
45
+ v3.0.0
46
+ * Support for Real User Monitoring
47
+ * Back end work on internals to improve reliability
48
+ * added a 'log_file_name' and 'log_file_path' configuration variable to allow
49
+ setting the path and name of the agent log file
50
+ * Improve reliability of statistics calculations
51
+ * Remove some previously deprecated methods
52
+ * Remove Sequel instrumentation pending more work
53
+
54
+ v2.14.1
55
+ * Avoid overriding methods named 'log' when including the MethodTracer module
56
+ * Ensure that all load paths for 'new_relic/agent' go through 'new_relic/control' first
57
+ * Remove some debugging output from tests
58
+
59
+ v2.14.0
60
+ * Dependency detection framework to prevent multi-loading or early-loading
61
+ of instrumentation files
62
+
63
+ v2.13.5
64
+ * Moved the API helper to the github newrelic_api gem.
65
+ * Revamped queue time to include server, queue, and middleware time
66
+ * Increased test coverage and stability
67
+ * Add Trinidad as a dispatcher (from Calavera, on github)
68
+ * Sequel instrumentation from Aman Gupta
69
+ * patches to 1.9 compatibility from dkastner on github
70
+ * Support for 1.9.2's garbage collection instrumentation from Justin Weiss
71
+ * On Heroku, existing queue time headers will be detected
72
+ * Fix rack constant scoping in dev mode for 1.9 (Rack != ::Rack)
73
+ * Fixes for instrumentation loading failing on Exception classes that
74
+ are not subclasses of StandardError
75
+ * Fix active record instrumentation load order for Rails 3
76
+
77
+ v2.13.4
78
+ * Update DNS lookup code to remove hardcoded IP addresses
79
+
80
+ v2.13.3
81
+ * Dalli instrumentation from Mike Perham (thanks Mike)
82
+ * Datamapper instrumentation from Jordan Ritter (thanks Jordan)
83
+ * Apdex now defaults to 0.5
84
+ !!! Please be aware that if you are not setting an apdex,
85
+ !!! this will cause a change in the apparent performance of your app.
86
+ * Make metric hashes threadsafe (fixes problems sending metrics in Jruby
87
+ threaded code)
88
+ * Delete obsolete links to metric docs in developer mode
89
+ * Detect gems when using Bundler
90
+ * Fix newrelic_ignore in Rails 3
91
+ * Break metric parser into a seperate vendored gem
92
+ * When using Unicorn, preload_app: true is recommended to get proper
93
+ after_fork behavior.
94
+
95
+ v2.13.2
96
+ * Remove a puts. Yes, a whole release for a puts.
97
+
98
+ v2.13.1
99
+ * Add missing require in rails 3 framework control
100
+
101
+ v2.13.0
102
+ * developer mode is now a rack middleware and can be used on any framework;
103
+ it is no longer supported automatically on versions of Rails prior to 2.3;
104
+ see README for details
105
+ * memcache key recording for transaction traces
106
+ * use system_timer gem if available, fall back to timeout lib
107
+ * address instability issues in JRuby 1.2
108
+ * renamed executable 'newrelic_cmd' to 'newrelic'; old name still supported
109
+ for backward compatibility
110
+ * added 'newrelic install' command to install a newrelic.yml file in the
111
+ current directory
112
+ * optimization to execution time measurement
113
+ * optimization to startup sequence
114
+ * change startup sequence so that instrumentation is installed after all
115
+ other gems and plugins have loaded
116
+ * add option to override automatic flushing of data on exit--send_data_on_exit
117
+ defaults to 'true'
118
+ * ignored errors no longer affect apdex score
119
+ * added record_transaction method to the api to allow recording
120
+ details from web and background transactions occurring outside RPM
121
+ * fixed a bug related to enabling a gold trial / upgrade not sending
122
+ trasaction traces correctly
123
+
124
+ v2.12.3
125
+ * fix regression in startup sequence
126
+
127
+ v2.12.2
128
+ * fix for regression in Rails 2.1 inline rendering
129
+ * workaround bug found in some rubies that caused a segv and/or NoMemoryError
130
+ when deflating content for upload
131
+ * avoid creating connection thread in unicorn/passenger spawners
132
+
133
+ v2.12.1
134
+ * fix bug in profile mode
135
+ * fix race condition in Delayed::Job instrumentation loading
136
+ * fix glassfish detection in latest glassfish gem
137
+
138
+ v2.12.0
139
+ * support basic instrumentation for ActsAsSolr and Sunspot
140
+
141
+ v2.11.3
142
+ * fix bug in startup when running JRuby
143
+
144
+ v2.11.2
145
+ * fix for unicorn not reporting when the proc line had 'master' in it
146
+ * fix regression for passenger 2.0 and earlier
147
+ * fix after_fork in the shim
148
+
149
+ v2.11.1
150
+ * republished gem without generated rdocs
151
+
152
+ v2.11.0
153
+ * rails3 instrumentation (no developer mode support yet)
154
+ * removed the ensure_worker_thread started and instead defined an after_fork
155
+ handler that will set up the agent properly in forked processes.
156
+ * change at_exit handler so the shutdown always goes after other shutdown
157
+ handlers
158
+ * add visibility to active record db transactions in the rpm transaction
159
+ traces (thanks to jeremy kemper)
160
+ * fix regression in merb support which caused merb apps not to start
161
+ * added NewRelic::Agent.logger to the public api to write to the agent
162
+ log file.
163
+ * optimizations to background thread, controller instrumentation, memory
164
+ usage
165
+ * add logger method to public_api
166
+ * support list notation for ignored exceptions in the newrelic.yml
167
+
168
+ v2.10.8
169
+ * fix bug in delayed_job instrumentation that caused the job queue sampler
170
+ to run in the wrong place
171
+ * change startup sequence and code that restarts the worker loop
172
+ thread
173
+ * detect the unicorn master and dont start the agent; hook in after_fork
174
+ * fix problem with the Authlogic metric names which caused errors in
175
+ developer mode. Authlogic metrics now adhere to the convention of
176
+ prefixing the name with 'Custom'
177
+ * allow more correct overriding of transaction trace settings in the
178
+ call to #manual_start
179
+ * simplify WorkerLoop and add better protection for concurrency
180
+ * preliminary support for rails3
181
+
182
+ v2.10.6
183
+ * fix missing URL and referer on some traced errors and transactions
184
+ * gather traced errors *after* executing the rescue chain in ActionController
185
+ * always load controller instrumentation
186
+ * pick up token validation from newrelic.yml
187
+
188
+ v2.10.5
189
+ * fix bug in delayed_job instrumentation occurring when there was no DJ log
190
+
191
+ v2.10.4
192
+ * fix incompatibility with Capistrano 2.5.16
193
+ * strip down URLs reported in transactions and errors to path only
194
+
195
+ v2.10.3
196
+ * optimization to reduce overhead: move background samplers into foreground thread
197
+ * change default config file to ignore RoutingErrors
198
+ * moved the background task instrumentation into a separate tab in the RPM UI
199
+ * allow override of the RPM application name via NEWRELIC_APP_NAME environment variable
200
+ * revised Delayed::Job instrumentation so no manual_start is required
201
+ * send buffered data on shutdown
202
+ * expanded support for queue length and queue time
203
+ * remove calls to starts_with to fix Sinatra and non-rails deployments
204
+ * fix problem with apdex scores recording too low in some circumstances
205
+ * switch to jeweler for gem building
206
+ * minor fixes, test improvements, doc and rakefile improvements
207
+ * fix incompatibility with Hoptoad where Hoptoad was not getting errors handled by New Relic
208
+ * many other optimizations, bug fixes and documentation improvements
209
+
210
+ v2.10.2.
211
+ * beta release of 2.10
212
+ * fix bugs with Sinatra app instrumentation
213
+ * minor doc updates
214
+
215
+ v2.10.1.
216
+ * alpha release of 2.10
217
+ * rack support, including metal; ignores 404s; requires a module inclusion (see docs)
218
+ * sinatra support, displays actions named by the URI pattern matched
219
+ * add API method to abort transaction recording for in-flight transactions
220
+ * remove account management calls from newrelic_api.rb
221
+ * truncating extremely large transaction traces for efficiency
222
+ * fix error reporting in recipes; add newrelic_rails_env option to recipes to
223
+ override the rails env used to pull the app_name out of newrelic.yml
224
+ * added TorqueBox recognition (thanks Bob McWhirter)
225
+ * renamed config settings: enabled => monitor_mode; developer => developer_mode;
226
+ old names will still work in newrelic.yml
227
+ * instrumentation for DelayedJob (thanks Travis Tilley)
228
+ * added config switches to turn off certain instrumentation when you aren't
229
+ interested in the metrics, to save on overhead--see newrelic.yml for details.
230
+ * add profiling support to dev mode; very experimental!
231
+ * add 'multi_threaded' config option to indicate when the app is running
232
+ multi-threaded, so we can disable some instrumentation
233
+ * fix test failures in JRuby, REE
234
+ * improve Net::HTTP instrumentation so its more efficient and distinguishes calls
235
+ between web and non-web transactions.
236
+ * database instrumentation notices all database commands in addition to the core commands
237
+ * add support for textmate to dev mode
238
+ * added add_transaction_tracer method to support instrumenting methods as
239
+ if they were web transactions; this will facilitate better visibility of background
240
+ tasks and eventually things like rack, metal and Sinatra
241
+ * adjusted apdex scores to reflect time spent in the mongrel queue
242
+ * fixed incompatibility with JRuby on startup
243
+ * implmented CPU measure for JRuby which reflects the cpu burn for
244
+ all controller actions (does not include background tasks)
245
+ * fixed scope issue with GC instrumentation, subtracting time from caller
246
+ * added # of GC calls to GC instrumentation
247
+ * renamed the dispatcher metric
248
+ * refactored stats_engine code for readability
249
+ * optimization: reduce wakeup times for harvest thread
250
+
251
+ v2.10.0.
252
+ * alpha release of 2.10
253
+ * support unicorn
254
+ * instrumentation of GC for REE and MRE with GC patch
255
+ * support agent restarting when changes are made to the account
256
+ * removed #newrelic_notice_error from Object class, replaced by NewRelic::Agent#notic_error
257
+ * collect histogram statistics
258
+ * add custom parameters to newrelic_notice_error call to display
259
+ extra info for errors
260
+ * add method disable_all_tracing(&block) to execute a block without
261
+ capturing metrics
262
+ * newrelic_ignore now blocks all instrumentation collection for
263
+ the specified actions
264
+ * added doc to method_tracer API and removed second arg
265
+ requirement for add_method_tracer call
266
+ * instrumentation for Net::HTTP
267
+ * remove method_tracer shim to avoid timing problems in monitoring daemons
268
+ * for non-rails daemons, look at APP_ROOT and NRCONFIG env vars for custom locations
269
+
270
+ v2.9.9.
271
+ * Disable at_exit handler for Unicorn which sometimes caused the
272
+ agent to stop reporting immediately.
273
+
274
+ v2.9.8.
275
+ * add instrumentation for Net::HTTP calls, to show up as "External"
276
+ * added support for validating agents in the cloud.
277
+ * recognize Unicorn dispatcher
278
+ * add NewRelic module definitions to ActiveRecord instrumentation
279
+
280
+ v2.9.5.
281
+ * Snow Leopard memory fix
282
+
283
+ v2.9.4.
284
+ * clamp size of data sent to server
285
+ * reset statistics for passenger when forking to avoid erroneous data
286
+ * fix problem deserializing errors from the server
287
+ * fix incompatibility with postgres introduced in 2.9.
288
+
289
+ v2.9.3.
290
+ * fix startup failure in Windows due to memory sampler
291
+ * add JRuby environment information
292
+
293
+ v2.9.2.
294
+ * change default apdex_t to 0.5 seconds
295
+ * fix bug in deployments introduced by multi_homed setting
296
+ * support overriding the log in the agent api
297
+ * fix JRuby problem using objectspace
298
+ * display custom parameters when looking at transactions in dev mode
299
+ * display count of sql statements on the list of transactions in dev mode
300
+ * fixes for merb--thanks to Carl Lerche
301
+
302
+ v2.9.1.
303
+ * add newrelic_ignore_apdex method to controller classes to allow
304
+ you to omit some actions from apdex statistics
305
+ * Add hook for Passenger shutdown events to get more timely shutdown
306
+ notices; this will help in more accurate memory readings in
307
+ Passenger
308
+ * add newrelic_notice_error to Object class
309
+ * optional ability to verify SSL certificates, note that this has some
310
+ performance and reliability implications
311
+ * support multi-homed host with multiple apps running on duplicate
312
+ ports
313
+
314
+ v2.9.0.
315
+ Noteworthy Enhancements
316
+ * give visibility to templates and partials in Rails 2.1 and later, in
317
+ dev mode and production
318
+ * change active record metrics to capture statistics in adapter log()
319
+ call, resulting in lower overhead and improved visibility into
320
+ different DB operations; only AR operations that are not hitting the
321
+ query cache will be measured to avoid overhead
322
+ * added mongrel_rpm to the gem, a standalone daemon listening for custom
323
+ metric values sent from local processes (experimental); do mongrel_rpm
324
+ --help
325
+ * add API for system monitoring daemons (refer to KB articles); changed
326
+ API for manual starting of the agent; refer to
327
+ NewRelic::Agent.manual_start for details
328
+ * do certificate verification on ssl connections to
329
+ collector.newrelic.com
330
+ * support instances appearing in more than one application by allowing a
331
+ semicolon separated list of names for the newrelic.yml app_name
332
+ setting.
333
+ * combined agent logfiles into a single logfile
334
+ * use rpm server time for transaction traces rather than agent time
335
+
336
+ Developer Mode (only) Enhancements
337
+ * show partial rendering in traces
338
+ * improved formatting of metric names in traces
339
+ * added number of queries to transactions in the transaction list
340
+ * added some sorting options for the transaction list
341
+ * added a page showing the list of active threads
342
+
343
+ Compatibility Enhancements
344
+ * ruby 1.9.1 compatibility
345
+ * support concurrency when determining busy times, for 2.2 compatibility
346
+ * in jruby, use Java used heap for memory sampling if the system memory
347
+ is not accessible from an unsupported platform
348
+ * jruby will no longer start the agent now when running the console or
349
+ rake tasks
350
+ * API support for RPM as a footnote add-in
351
+ * webrick support restored
352
+
353
+ Noteworthy bugfixes
354
+ * sample memory on linux by reading /proc/#{$$}/status file
355
+ * fixed ambiguous 'View' metrics showing up in controller breakdown
356
+ * removed Numeric extensions, including round_to, and to_ms
357
+ * using a different timeout mechanism when we post data to RPM
358
+ * remove usage of Rails::Info which had a side effect of enabling
359
+ ActiveRecord even when it wasn't an active framework
360
+ * moved CPU sampler off background thread and onto the harvest thread
361
+ * tests now run cleanly in any rails app using test:newrelic or
362
+ test:plugins
363
+
364
+ Agent improvements to support future RPM enhancements
365
+ * add instrumentation to capture metrics on response codes; not yet
366
+ working in rails 2.3.*
367
+ * added http referer to traced errors
368
+ * capture gem requirements from rails
369
+ * capture cpu utilization adjusted for processor count
370
+ * transaction sampling
371
+
372
+ v2.8.10.
373
+ * fix thin support with rails 2.3.2 when using script/server
374
+ * fix incompatibility with rails 2.3.2 and script/server options
375
+ processing
376
+ * minor tweak to environment gathering for gem mode
377
+
378
+ v2.8.9.
379
+ * fix problem finding the newrelic controller in dev mode
380
+ * fix incompatibility with older versions of optparse
381
+ * fix potential jvm problem with jruby
382
+ * remove test:all task definition to avoid conflicts
383
+ * change error message about window sampler in windows not supported to a
384
+ warning message
385
+
386
+ v2.8.8.
387
+ * fix error with jruby on windows
388
+ * fix problem where webrick was being incorrectly detected causing some
389
+ problems with mongrel application assignments--had to disable webrick
390
+ for now
391
+
392
+ v2.8.7.
393
+ * fix for ssl connection hanging problems
394
+ * fix problem recognizing mongrel in rails 2.3.2
395
+ * fastcgi support in rails 2.3.2
396
+ * put back webrick support
397
+
398
+ v2.8.6.
399
+ * fix for capture_params when using file uploads in controller actions
400
+ * use pure ruby NS lookup for collector host to eliminate possibly
401
+ blocking applications
402
+
403
+ v2.8.5.
404
+ * fix reference to CommandError which was breaking some cap scripts
405
+ * fix incompatibility with Rails 2.0 in the server API
406
+ * fix problem with litespeed with Lite accounts
407
+ * fix problem when ActiveRecord is disabled
408
+ * moved merb instrumentation to Merb::Controller instead of
409
+ AbstractController to address incompatibility with MailController
410
+ * fix problem in devmode displaying sql with embedded urls
411
+
412
+ v2.8.4.
413
+ * fix bug in capistrano recipe causing cap commands to fail with error
414
+ about not finding Version class
415
+
416
+ v2.8.3.
417
+ * refactor unit tests so they will run in a generic rails environment
418
+ * require classes in advance to avoid autoloading. this is to address
419
+ incompatibilities with desert as well as more flexibility in gem
420
+ initialization
421
+ * fixed newrelic_helper.rb 1.9 incompatibility
422
+
423
+ v2.8.2.
424
+ * fix Ruby 1.9 syntax compatibility errors
425
+ * update the class loading sanity check, will notify server of errors
426
+ * fix agent output on script and rake task execution
427
+
428
+ v2.8.1.
429
+ * Convert the deployment information upload script to an executable and
430
+ put in the bin directory. When installed as a gem this command is
431
+ symlinked to /usr/bin. Usage: newrelic_cmd deployments --help
432
+ * Fix issue invoking api when host is not set in newrelic.yml
433
+ * Fix deployments api so it will work from a gem
434
+ * Fix thin incompatibility in developer mode
435
+
436
+ v2.8.0.
437
+ * add beta of api in new_relic_api.rb
438
+ * instrumented dynamic finders in ActiveRecord
439
+ * preliminary support for capturing deployment information via capistrano
440
+ * change memory sampler for solaris to use /usr/bin/ps
441
+ * allow ERB in newrelic.yml file
442
+ * merged support for merb into this version
443
+ * fix incompatibility in the developer mode with the safe_erb plugin
444
+ * fix module namespace issue causing an error accessing
445
+ NewRelic::Instrumentation modules
446
+ * fix issue where the agent sometimes failed to start up if there was a
447
+ transient network problem
448
+ * fix IgnoreSilentlyException message
449
+
450
+ v2.7.4.
451
+ * fix error when trying to serialize some kinds of Enumerable objects
452
+ * added extra debug logging
453
+ * added app_name to app mapping
454
+
455
+ v2.7.3.
456
+ * fix compatibility issue with 1.8.5 causing error with Dir.glob
457
+
458
+ v2.7.2.
459
+ * fix problem with passenger edge not being a detected environment
460
+
461
+ v2.7.1.
462
+ * fix problem with skipped dispatcher instrumentation
463
+
464
+ v2.7.0.
465
+ * Repackage to support both plugin and Gem installation
466
+ * Support passenger/litespeed/jruby application naming
467
+ * Update method for calculating dispatcher queue time
468
+ * Show stack traces in RPM Transaction Traces
469
+ * Capture error source for TemplateErrors
470
+ * Clean up error stack traces.
471
+ * Support query plans from postgres
472
+ * Performance tuning
473
+ * bugfixes
474
+
475
+ v2.5.3.
476
+ * fix error in transaction tracing causing traces not to show up
477
+
478
+ v2.5.2.
479
+ * fixes for postgres explain plan support
480
+
481
+ v2.5.1.
482
+ * bugfixes
483
+
484
+ v2.5.0.
485
+ * add agent support for rpm 1.1 features
486
+ * Fix regression error with thin support
487
+
488
+ v2.4.3.
489
+ * added 'newrelic_ignore' controller class method with :except and :only options for finer grained control
490
+ over the blocking of instrumentation in controllers.
491
+ * bugfixes
492
+
493
+ v2.4.2.
494
+ * error reporting in early access
495
+
496
+ v2.4.1.
497
+ * bugfix: initializing developer mode
498
+
499
+ v2.4.0.
500
+ * Beta support for LiteSpeed and Passenger
501
+
502
+ v2.3.7.
503
+ * bugfixes
504
+
505
+ v2.3.6.
506
+ * bugfixes
507
+
508
+ v2.3.5.
509
+ * bugfixes: pie chart data, rails 1.1 compability
510
+
511
+ v2.3.4.
512
+ * bugfix
513
+
514
+ v2.3.3.
515
+ * bugfix for non-mysql databases
516
+
517
+ v2.3.2.
518
+ * bugfixes
519
+ * Add enhancement for Transaction Traces early access feature
520
+
521
+ v2.3.1.
522
+ * bugfixes
523
+
524
+ v2.3.0.
525
+ + Add support for Transaction Traces early access feature
526
+
527
+ v2.2.2.
528
+ * bugfixes
529
+
530
+ v2.2.1.
531
+ + Add rails 2.1 support for Developer Mode
532
+ + Changes to memory sampler: Add support for JRuby and fix Solaris support.
533
+ * Stop catching exceptions and start catching StandardError; other exception cleanup
534
+ * Add protective exception catching to the stats engine
535
+ * Improved support for thin domain sockets
536
+ * Support JRuby environments
537
+
538
+ v2.1.6.
539
+ * bugfixes
540
+
541
+ v2.1.5.
542
+ * bugfixes
543
+
544
+ v2.1.4.
545
+ * bugfixes
546
+
547
+ v2.1.3.
548
+ * bugfixes
549
+
550
+ v2.1.2.
551
+ * bugfixes
552
+
553
+ v2.1.1.
554
+ * bugfixes
555
+
556
+ v2.1.0.
557
+ * release for private beta
558
+
559
+
data/LICENSE ADDED
@@ -0,0 +1,64 @@
1
+ This product includes jquery written by John Resig
2
+ and distributed under an MIT license.
3
+ See https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt
4
+
5
+ Copyright (c) 2011 John Resig, http://jquery.com/
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+
27
+ All other components of this product are
28
+ Copyright (c) 2008-2011 New Relic, Inc. All rights reserved.
29
+
30
+ Certain inventions disclosed in this file may be claimed within
31
+ patents owned or patent applications filed by New Relic, Inc. or third
32
+ parties.
33
+
34
+ Subject to the terms of this notice, New Relic grants you a
35
+ nonexclusive, nontransferable license, without the right to
36
+ sublicense, to (a) install and execute one copy of these files on any
37
+ number of workstations owned or controlled by you and (b) distribute
38
+ verbatim copies of these files to third parties. As a condition to the
39
+ foregoing grant, you must provide this notice along with each copy you
40
+ distribute and you must not remove, alter, or obscure this notice. All
41
+ other use, reproduction, modification, distribution, or other
42
+ exploitation of these files is strictly prohibited, except as may be set
43
+ forth in a separate written license agreement between you and New
44
+ Relic. The terms of any such license agreement will control over this
45
+ notice. The license stated above will be automatically terminated and
46
+ revoked if you exceed its scope or violate any of the terms of this
47
+ notice.
48
+
49
+ This License does not grant permission to use the trade names,
50
+ trademarks, service marks, or product names of New Relic, except as
51
+ required for reasonable and customary use in describing the origin of
52
+ this file and reproducing the content of this notice. You may not
53
+ mark or brand this file with any trade name, trademarks, service
54
+ marks, or product names other than the original brand (if any)
55
+ provided by New Relic.
56
+
57
+ Unless otherwise expressly agreed by New Relic in a separate written
58
+ license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
59
+ ANY KIND, including without any implied warranties of MERCHANTABILITY,
60
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT. As a
61
+ condition to your use of these files, you are solely responsible for
62
+ such use. New Relic will have no liability to you for direct,
63
+ indirect, consequential, incidental, special, or punitive damages or
64
+ for lost profits or data.