newrelic_rpm 3.13.0.299 → 3.13.1.300
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/CHANGELOG +36 -1
- data/lib/new_relic/agent/agent.rb +0 -1
- data/lib/new_relic/agent/database.rb +1 -1
- data/lib/new_relic/agent/datastores/mongo.rb +8 -7
- data/lib/new_relic/agent/datastores/mongo/event_formatter.rb +49 -0
- data/lib/new_relic/agent/datastores/mongo/obfuscator.rb +2 -2
- data/lib/new_relic/agent/error_collector.rb +12 -51
- data/lib/new_relic/agent/error_trace_aggregator.rb +89 -0
- data/lib/new_relic/agent/instrumentation/active_record.rb +1 -1
- data/lib/new_relic/agent/instrumentation/active_record_4.rb +1 -1
- data/lib/new_relic/agent/instrumentation/active_record_helper.rb +26 -1
- data/lib/new_relic/agent/instrumentation/mongo.rb +16 -1
- data/lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb +74 -0
- data/lib/new_relic/agent/supported_versions.rb +15 -1
- data/lib/new_relic/agent/system_info.rb +5 -0
- data/lib/new_relic/recipes/capistrano3.rb +1 -1
- data/lib/new_relic/recipes/capistrano_legacy.rb +1 -1
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +1 -1
- data/test/environments/lib/environments/runner.rb +1 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/README.md +4 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/malformed_file.txt +3 -0
- data/test/multiverse/lib/multiverse/suite.rb +4 -4
- data/test/multiverse/suites/active_record/active_record_test.rb +67 -26
- data/test/multiverse/suites/agent_only/start_up_test.rb +17 -3
- data/test/multiverse/suites/config_file_loading/Envfile +1 -1
- data/test/multiverse/suites/mongo/Envfile +3 -1
- data/test/multiverse/suites/mongo/mongo2_instrumentation_test.rb +344 -0
- data/test/multiverse/suites/mongo/mongo_connection_test.rb +2 -1
- data/test/multiverse/suites/mongo/mongo_instrumentation_test.rb +2 -1
- data/test/multiverse/suites/mongo/mongo_unsupported_version_test.rb +1 -1
- data/test/multiverse/suites/rails/rails3_app/app_rails3_plus.rb +7 -0
- data/test/multiverse/suites/sidekiq/Envfile +1 -1
- data/test/new_relic/agent/agent/start_test.rb +0 -5
- data/test/new_relic/agent/database_test.rb +8 -1
- data/test/new_relic/agent/datastores/mongo/event_formatter_test.rb +154 -0
- data/test/new_relic/agent/error_collector_test.rb +0 -13
- data/test/new_relic/agent/error_trace_aggregator_test.rb +30 -0
- data/test/new_relic/agent/instrumentation/mongodb_command_subscriber_test.rb +72 -0
- data/test/new_relic/agent/stats_engine/metric_stats_test.rb +24 -22
- data/test/new_relic/agent/system_info_test.rb +9 -1
- data/test/new_relic/rack/error_collector_test.rb +1 -2
- metadata +10 -2
@@ -24,8 +24,7 @@ module NewRelic::Rack
|
|
24
24
|
def setup
|
25
25
|
NewRelic::Agent.reset_config
|
26
26
|
NewRelic::Agent.manual_start
|
27
|
-
NewRelic::Agent.instance.error_collector
|
28
|
-
NewRelic::Agent.instance.error_collector.errors = []
|
27
|
+
NewRelic::Agent.instance.error_collector.reset!
|
29
28
|
|
30
29
|
# sanity checks
|
31
30
|
assert NewRelic::Agent.instance.error_collector.enabled?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.1.300
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Krajcar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -258,6 +258,7 @@ files:
|
|
258
258
|
- lib/new_relic/agent/datastores.rb
|
259
259
|
- lib/new_relic/agent/datastores/metric_helper.rb
|
260
260
|
- lib/new_relic/agent/datastores/mongo.rb
|
261
|
+
- lib/new_relic/agent/datastores/mongo/event_formatter.rb
|
261
262
|
- lib/new_relic/agent/datastores/mongo/metric_translator.rb
|
262
263
|
- lib/new_relic/agent/datastores/mongo/obfuscator.rb
|
263
264
|
- lib/new_relic/agent/datastores/mongo/statement_formatter.rb
|
@@ -265,6 +266,7 @@ files:
|
|
265
266
|
- lib/new_relic/agent/deprecator.rb
|
266
267
|
- lib/new_relic/agent/encoding_normalizer.rb
|
267
268
|
- lib/new_relic/agent/error_collector.rb
|
269
|
+
- lib/new_relic/agent/error_trace_aggregator.rb
|
268
270
|
- lib/new_relic/agent/event_buffer.rb
|
269
271
|
- lib/new_relic/agent/event_listener.rb
|
270
272
|
- lib/new_relic/agent/event_loop.rb
|
@@ -307,6 +309,7 @@ files:
|
|
307
309
|
- lib/new_relic/agent/instrumentation/middleware_proxy.rb
|
308
310
|
- lib/new_relic/agent/instrumentation/middleware_tracing.rb
|
309
311
|
- lib/new_relic/agent/instrumentation/mongo.rb
|
312
|
+
- lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb
|
310
313
|
- lib/new_relic/agent/instrumentation/net.rb
|
311
314
|
- lib/new_relic/agent/instrumentation/padrino.rb
|
312
315
|
- lib/new_relic/agent/instrumentation/passenger_instrumentation.rb
|
@@ -667,6 +670,7 @@ files:
|
|
667
670
|
- test/fixtures/cross_agent_tests/proc_cpuinfo/8pack_8core_8logical.txt
|
668
671
|
- test/fixtures/cross_agent_tests/proc_cpuinfo/README.md
|
669
672
|
- test/fixtures/cross_agent_tests/proc_cpuinfo/Xpack_Xcore_2logical.txt
|
673
|
+
- test/fixtures/cross_agent_tests/proc_cpuinfo/malformed_file.txt
|
670
674
|
- test/fixtures/cross_agent_tests/proc_meminfo/README.md
|
671
675
|
- test/fixtures/cross_agent_tests/proc_meminfo/meminfo_4096MB.txt
|
672
676
|
- test/fixtures/cross_agent_tests/rules.json
|
@@ -841,6 +845,7 @@ files:
|
|
841
845
|
- test/multiverse/suites/mongo/helpers/mongo_replica_set_test.rb
|
842
846
|
- test/multiverse/suites/mongo/helpers/mongo_server.rb
|
843
847
|
- test/multiverse/suites/mongo/helpers/mongo_server_test.rb
|
848
|
+
- test/multiverse/suites/mongo/mongo2_instrumentation_test.rb
|
844
849
|
- test/multiverse/suites/mongo/mongo_connection_test.rb
|
845
850
|
- test/multiverse/suites/mongo/mongo_instrumentation_test.rb
|
846
851
|
- test/multiverse/suites/mongo/mongo_unsupported_version_test.rb
|
@@ -990,6 +995,7 @@ files:
|
|
990
995
|
- test/new_relic/agent/database/sql_obfuscation_test.rb
|
991
996
|
- test/new_relic/agent/database_test.rb
|
992
997
|
- test/new_relic/agent/datastores/metric_helper_test.rb
|
998
|
+
- test/new_relic/agent/datastores/mongo/event_formatter_test.rb
|
993
999
|
- test/new_relic/agent/datastores/mongo/metric_translator_test.rb
|
994
1000
|
- test/new_relic/agent/datastores/mongo/obfuscator_test.rb
|
995
1001
|
- test/new_relic/agent/datastores/mongo/statement_formatter_test.rb
|
@@ -998,6 +1004,7 @@ files:
|
|
998
1004
|
- test/new_relic/agent/deprecator_test.rb
|
999
1005
|
- test/new_relic/agent/encoding_normalizer_test.rb
|
1000
1006
|
- test/new_relic/agent/error_collector_test.rb
|
1007
|
+
- test/new_relic/agent/error_trace_aggregator_test.rb
|
1001
1008
|
- test/new_relic/agent/event_buffer_test_cases.rb
|
1002
1009
|
- test/new_relic/agent/event_listener_test.rb
|
1003
1010
|
- test/new_relic/agent/event_loop_test.rb
|
@@ -1016,6 +1023,7 @@ files:
|
|
1016
1023
|
- test/new_relic/agent/instrumentation/metric_frame_test.rb
|
1017
1024
|
- test/new_relic/agent/instrumentation/middleware_proxy_test.rb
|
1018
1025
|
- test/new_relic/agent/instrumentation/middleware_tracing_test.rb
|
1026
|
+
- test/new_relic/agent/instrumentation/mongodb_command_subscriber_test.rb
|
1019
1027
|
- test/new_relic/agent/instrumentation/net_instrumentation_test.rb
|
1020
1028
|
- test/new_relic/agent/instrumentation/queue_time_test.rb
|
1021
1029
|
- test/new_relic/agent/instrumentation/rack_test.rb
|