newrelic_rpm 3.16.0.318 → 3.16.1.320
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -4
- data/CHANGELOG +41 -2
- data/lib/new_relic/agent/database.rb +15 -4
- data/lib/new_relic/agent/database/explain_plan_helpers.rb +2 -1
- data/lib/new_relic/agent/datastores.rb +13 -13
- data/lib/new_relic/agent/datastores/metric_helper.rb +33 -2
- data/lib/new_relic/agent/datastores/mongo/metric_translator.rb +3 -9
- data/lib/new_relic/agent/error_collector.rb +2 -2
- data/lib/new_relic/agent/instrumentation/active_record.rb +9 -19
- data/lib/new_relic/agent/instrumentation/active_record_helper.rb +2 -6
- data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +49 -40
- data/lib/new_relic/agent/instrumentation/data_mapper.rb +29 -23
- data/lib/new_relic/agent/instrumentation/grape.rb +20 -11
- data/lib/new_relic/agent/instrumentation/memcache.rb +8 -10
- data/lib/new_relic/agent/instrumentation/mongo.rb +25 -16
- data/lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb +14 -19
- data/lib/new_relic/agent/method_tracer_helpers.rb +4 -8
- data/lib/new_relic/agent/sql_sampler.rb +14 -1
- data/lib/new_relic/agent/stats_engine/metric_stats.rb +18 -0
- data/lib/new_relic/agent/supported_versions.rb +2 -3
- data/lib/new_relic/agent/traced_method_stack.rb +7 -1
- data/lib/new_relic/agent/transaction.rb +6 -0
- data/lib/new_relic/agent/transaction/abstract_segment.rb +73 -0
- data/lib/new_relic/agent/transaction/datastore_segment.rb +49 -0
- data/lib/new_relic/agent/transaction/segment.rb +30 -0
- data/lib/new_relic/agent/transaction/tracing.rb +53 -0
- data/lib/new_relic/agent/transaction_sampler.rb +8 -1
- data/lib/new_relic/noticed_error.rb +3 -1
- data/lib/new_relic/version.rb +1 -1
- data/lib/sequel/extensions/newrelic_instrumentation.rb +22 -15
- data/lib/sequel/plugins/newrelic_instrumentation.rb +4 -3
- data/newrelic_rpm.gemspec +1 -9
- data/test/environments/lib/environments/runner.rb +6 -4
- data/test/environments/norails/Gemfile +9 -3
- data/test/environments/rails21/Gemfile +6 -3
- data/test/environments/rails22/Gemfile +5 -2
- data/test/environments/rails23/Gemfile +1 -1
- data/test/environments/rails30/Gemfile +1 -1
- data/test/environments/rails31/Gemfile +1 -1
- data/test/environments/rails32/Gemfile +1 -1
- data/test/environments/rails40/Gemfile +2 -2
- data/test/environments/rails41/Gemfile +2 -2
- data/test/environments/rails42/Gemfile +2 -2
- data/test/environments/rails50/Gemfile +2 -2
- data/test/helpers/mongo_metric_builder.rb +3 -4
- data/test/multiverse/lib/multiverse/shell_utils.rb +27 -0
- data/test/multiverse/lib/multiverse/suite.rb +47 -2
- data/test/multiverse/suites/active_record/Envfile +1 -1
- data/test/multiverse/suites/delayed_job/Envfile +2 -0
- data/test/multiverse/suites/grape/grape_versioning_test.rb +55 -1
- data/test/multiverse/suites/grape/grape_versioning_test_api.rb +61 -3
- data/test/multiverse/suites/mongo/mongo_instrumentation_test.rb +18 -0
- data/test/multiverse/suites/rails/Envfile +3 -3
- data/test/multiverse/suites/rails/error_tracing_test.rb +2 -2
- data/test/multiverse/suites/sequel/Envfile +7 -0
- data/test/multiverse/suites/sequel/sequel_extension_test.rb +1 -1
- data/test/new_relic/agent/database_test.rb +9 -0
- data/test/new_relic/agent/datastores/metric_helper_test.rb +76 -43
- data/test/new_relic/agent/datastores/mongo/metric_translator_test.rb +67 -117
- data/test/new_relic/agent/datastores_test.rb +17 -0
- data/test/new_relic/agent/error_collector_test.rb +21 -5
- data/test/new_relic/agent/instrumentation/active_record_helper_test.rb +40 -45
- data/test/new_relic/agent/instrumentation/active_record_subscriber_test.rb +2 -3
- data/test/new_relic/agent/instrumentation/mongodb_command_subscriber_test.rb +2 -0
- data/test/new_relic/agent/method_tracer_test.rb +54 -52
- data/test/new_relic/agent/mock_scope_listener.rb +4 -1
- data/test/new_relic/agent/sql_sampler_test.rb +15 -0
- data/test/new_relic/agent/transaction/abstract_segment_test.rb +94 -0
- data/test/new_relic/agent/transaction/datastore_segment_test.rb +99 -0
- data/test/new_relic/agent/transaction/segment_test.rb +53 -0
- data/test/new_relic/agent/transaction/tracing_test.rb +121 -0
- data/test/new_relic/agent/transaction_sampler_test.rb +13 -0
- data/test/new_relic/noticed_error_test.rb +7 -0
- data/test/performance/suites/datastores.rb +59 -0
- data/test/performance/suites/trace_execution_scoped.rb +8 -9
- metadata +13 -46
@@ -5,12 +5,7 @@
|
|
5
5
|
class TestClass
|
6
6
|
def method_1
|
7
7
|
trace_execution_scoped(['a', 'b']) do
|
8
|
-
|
9
|
-
end
|
10
|
-
|
11
|
-
def method_2
|
12
|
-
callback = Proc.new { ['c', 'd'] }
|
13
|
-
trace_execution_scoped(['a', 'b'], { :additional_metrics_callback => callback }) do
|
8
|
+
"hi"
|
14
9
|
end
|
15
10
|
end
|
16
11
|
end
|
@@ -22,11 +17,15 @@ class TraceExecutionScopedTests < Performance::TestCase
|
|
22
17
|
require 'new_relic/agent/method_tracer'
|
23
18
|
end
|
24
19
|
|
25
|
-
def
|
20
|
+
def test_trace_execution_scoped
|
26
21
|
measure { @test_class.method_1 }
|
27
22
|
end
|
28
23
|
|
29
|
-
def
|
30
|
-
measure
|
24
|
+
def test_trace_execution_scoped_in_a_transaction
|
25
|
+
measure do
|
26
|
+
in_transaction do
|
27
|
+
@test_class.method_1
|
28
|
+
end
|
29
|
+
end
|
31
30
|
end
|
32
31
|
end
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.16.
|
4
|
+
version: 3.16.1.320
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Krajcar
|
8
8
|
- Matthew Wear
|
9
9
|
- Katherine Wu
|
10
|
-
- Karl Sandwich
|
11
10
|
- Caito Scherr
|
11
|
+
- Kenichi Nakamura
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -112,48 +112,6 @@ dependencies:
|
|
112
112
|
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: 0.2.5
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: guard
|
117
|
-
requirement: !ruby/object:Gem::Requirement
|
118
|
-
requirements:
|
119
|
-
- - ">="
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '0'
|
122
|
-
type: :development
|
123
|
-
prerelease: false
|
124
|
-
version_requirements: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '0'
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: guard-minitest
|
131
|
-
requirement: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - ">="
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '0'
|
136
|
-
type: :development
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '0'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: rb-fsevent
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - ">="
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '0'
|
157
115
|
- !ruby/object:Gem::Dependency
|
158
116
|
name: i18n
|
159
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -392,13 +350,17 @@ files:
|
|
392
350
|
- lib/new_relic/agent/threading/thread_profile.rb
|
393
351
|
- lib/new_relic/agent/traced_method_stack.rb
|
394
352
|
- lib/new_relic/agent/transaction.rb
|
353
|
+
- lib/new_relic/agent/transaction/abstract_segment.rb
|
395
354
|
- lib/new_relic/agent/transaction/attributes.rb
|
355
|
+
- lib/new_relic/agent/transaction/datastore_segment.rb
|
396
356
|
- lib/new_relic/agent/transaction/developer_mode_sample_buffer.rb
|
397
357
|
- lib/new_relic/agent/transaction/request_attributes.rb
|
358
|
+
- lib/new_relic/agent/transaction/segment.rb
|
398
359
|
- lib/new_relic/agent/transaction/slowest_sample_buffer.rb
|
399
360
|
- lib/new_relic/agent/transaction/synthetics_sample_buffer.rb
|
400
361
|
- lib/new_relic/agent/transaction/trace.rb
|
401
362
|
- lib/new_relic/agent/transaction/trace_node.rb
|
363
|
+
- lib/new_relic/agent/transaction/tracing.rb
|
402
364
|
- lib/new_relic/agent/transaction/transaction_sample_buffer.rb
|
403
365
|
- lib/new_relic/agent/transaction/xray_sample_buffer.rb
|
404
366
|
- lib/new_relic/agent/transaction_error_primitive.rb
|
@@ -759,6 +721,7 @@ files:
|
|
759
721
|
- test/multiverse/lib/multiverse/environment.rb
|
760
722
|
- test/multiverse/lib/multiverse/output_collector.rb
|
761
723
|
- test/multiverse/lib/multiverse/runner.rb
|
724
|
+
- test/multiverse/lib/multiverse/shell_utils.rb
|
762
725
|
- test/multiverse/lib/multiverse/suite.rb
|
763
726
|
- test/multiverse/script/runner
|
764
727
|
- test/multiverse/suites/active_record/.gitignore
|
@@ -1119,13 +1082,17 @@ files:
|
|
1119
1082
|
- test/new_relic/agent/threading/thread_profile_test.rb
|
1120
1083
|
- test/new_relic/agent/threading/threaded_test_case.rb
|
1121
1084
|
- test/new_relic/agent/traced_method_stack_test.rb
|
1085
|
+
- test/new_relic/agent/transaction/abstract_segment_test.rb
|
1122
1086
|
- test/new_relic/agent/transaction/attributes_test.rb
|
1087
|
+
- test/new_relic/agent/transaction/datastore_segment_test.rb
|
1123
1088
|
- test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb
|
1124
1089
|
- test/new_relic/agent/transaction/request_attributes_test.rb
|
1090
|
+
- test/new_relic/agent/transaction/segment_test.rb
|
1125
1091
|
- test/new_relic/agent/transaction/slowest_sample_buffer_test.rb
|
1126
1092
|
- test/new_relic/agent/transaction/synthetics_sample_buffer_test.rb
|
1127
1093
|
- test/new_relic/agent/transaction/trace_node_test.rb
|
1128
1094
|
- test/new_relic/agent/transaction/trace_test.rb
|
1095
|
+
- test/new_relic/agent/transaction/tracing_test.rb
|
1129
1096
|
- test/new_relic/agent/transaction/xray_sample_buffer_test.rb
|
1130
1097
|
- test/new_relic/agent/transaction_error_primitive_test.rb
|
1131
1098
|
- test/new_relic/agent/transaction_event_aggregator_test.rb
|
@@ -1220,6 +1187,7 @@ files:
|
|
1220
1187
|
- test/performance/suites/active_record.rb
|
1221
1188
|
- test/performance/suites/agent_attributes.rb
|
1222
1189
|
- test/performance/suites/config.rb
|
1190
|
+
- test/performance/suites/datastores.rb
|
1223
1191
|
- test/performance/suites/error_collector.rb
|
1224
1192
|
- test/performance/suites/marshalling.rb
|
1225
1193
|
- test/performance/suites/queue_time.rb
|
@@ -1344,4 +1312,3 @@ signing_key:
|
|
1344
1312
|
specification_version: 4
|
1345
1313
|
summary: New Relic Ruby Agent
|
1346
1314
|
test_files: []
|
1347
|
-
has_rdoc:
|