newrelic_rpm 3.7.1.188 → 3.7.2.190.beta
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -2
- data/CHANGELOG +1 -1
- data/Guardfile +3 -3
- data/README.md +1 -1
- data/Rakefile +0 -2
- data/init.rb +2 -5
- data/lib/new_relic/agent.rb +3 -0
- data/lib/new_relic/agent/agent.rb +2 -0
- data/lib/new_relic/agent/configuration/default_source.rb +32 -14
- data/lib/new_relic/agent/configuration/environment_source.rb +1 -0
- data/lib/new_relic/agent/cross_app_monitor.rb +2 -2
- data/lib/new_relic/agent/cross_app_tracing.rb +2 -2
- data/lib/new_relic/agent/error_collector.rb +1 -1
- data/lib/new_relic/agent/http_clients/typhoeus_wrappers.rb +4 -1
- data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +10 -8
- data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +11 -6
- data/lib/new_relic/agent/javascript_instrumentor.rb +27 -36
- data/lib/new_relic/agent/method_tracer.rb +20 -2
- data/lib/new_relic/agent/new_relic_service.rb +35 -27
- data/lib/new_relic/agent/request_sampler.rb +20 -13
- data/lib/new_relic/agent/sampler_collection.rb +4 -0
- data/lib/new_relic/agent/stats_engine/stats_hash.rb +4 -4
- data/lib/new_relic/agent/system_info.rb +25 -15
- data/lib/new_relic/agent/transaction.rb +23 -4
- data/lib/new_relic/agent/transaction_sampler.rb +1 -1
- data/lib/new_relic/cli/install.rb +1 -1
- data/lib/new_relic/control.rb +1 -0
- data/lib/new_relic/helper.rb +1 -29
- data/lib/new_relic/json_wrapper.rb +92 -0
- data/lib/new_relic/language_support.rb +4 -0
- data/lib/new_relic/rack/agent_hooks.rb +4 -0
- data/lib/new_relic/rack/browser_monitoring.rb +4 -0
- data/lib/new_relic/rack/developer_mode.rb +4 -1
- data/lib/new_relic/rack/error_collector.rb +5 -0
- data/lib/new_relic/rack/transaction_reset.rb +20 -0
- data/lib/new_relic/version.rb +1 -1
- data/lib/tasks/install.rake +0 -1
- data/newrelic_rpm.gemspec +1 -1
- data/test/agent_helper.rb +7 -8
- data/test/environments/norails/Gemfile +2 -1
- data/test/environments/rails21/Gemfile +2 -2
- data/test/environments/rails21/config/environment.rb +1 -3
- data/test/environments/rails21/config/environments/development.rb +0 -6
- data/test/environments/rails22/Gemfile +2 -2
- data/test/environments/rails22/config/environment.rb +0 -2
- data/test/environments/rails22/config/environments/development.rb +0 -6
- data/test/environments/rails23/Gemfile +2 -3
- data/test/environments/rails23/config/environment.rb +0 -9
- data/test/environments/rails23/config/environments/development.rb +0 -5
- data/test/environments/rails30/Gemfile +2 -2
- data/test/environments/rails31/Gemfile +2 -2
- data/test/environments/rails32/Gemfile +2 -1
- data/test/environments/rails40/Gemfile +2 -1
- data/test/intentional_fail.rb +1 -2
- data/test/multiverse/lib/multiverse/envfile.rb +1 -5
- data/test/multiverse/lib/multiverse/suite.rb +10 -27
- data/test/multiverse/suites/active_record/ar_method_aliasing.rb +49 -67
- data/test/multiverse/suites/agent_only/encoding_handling_test.rb +128 -0
- data/test/multiverse/suites/agent_only/marshaling_test.rb +7 -9
- data/test/multiverse/suites/agent_only/script/loading.rb +20 -0
- data/test/multiverse/suites/agent_only/start_up_test.rb +7 -0
- data/test/multiverse/suites/bare/Envfile +3 -0
- data/test/multiverse/suites/bare/standalone_instrumentation_test.rb +43 -0
- data/test/multiverse/suites/rails/Envfile +0 -2
- data/test/multiverse/suites/rails/app/views/views/_a_partial.html.erb +1 -0
- data/test/multiverse/suites/rails/app/views/views/index.html.erb +1 -1
- data/test/multiverse/suites/rails/error_tracing_test.rb +1 -1
- data/test/multiverse/suites/rails/request_statistics_test.rb +9 -4
- data/test/multiverse/suites/rails/view_instrumentation_test.rb +111 -106
- data/test/multiverse/suites/typhoeus/Envfile +1 -1
- data/test/multiverse/suites/typhoeus/typhoeus_test.rb +16 -2
- data/test/multiverse/test/multiverse_test.rb +2 -2
- data/test/new_relic/agent/agent/connect_test.rb +1 -1
- data/test/new_relic/agent/agent/start_test.rb +1 -1
- data/test/new_relic/agent/agent/start_worker_thread_test.rb +1 -1
- data/test/new_relic/agent/agent_logger_test.rb +3 -7
- data/test/new_relic/agent/agent_test.rb +33 -57
- data/test/new_relic/agent/apdex_from_server_test.rb +1 -1
- data/test/new_relic/agent/audit_logger_test.rb +5 -8
- data/test/new_relic/agent/autostart_test.rb +1 -1
- data/test/new_relic/agent/browser_token_test.rb +1 -1
- data/test/new_relic/agent/busy_calculator_test.rb +2 -4
- data/test/new_relic/agent/commands/agent_command_router_test.rb +5 -5
- data/test/new_relic/agent/commands/agent_command_test.rb +1 -1
- data/test/new_relic/agent/commands/thread_profiler_session_test.rb +6 -6
- data/test/new_relic/agent/commands/xray_session_collection_test.rb +10 -10
- data/test/new_relic/agent/commands/xray_session_test.rb +1 -1
- data/test/new_relic/agent/configuration/default_source_test.rb +4 -4
- data/test/new_relic/agent/configuration/environment_source_test.rb +14 -2
- data/test/new_relic/agent/configuration/manager_test.rb +3 -3
- data/test/new_relic/agent/configuration/orphan_configuration_test.rb +1 -1
- data/test/new_relic/agent/configuration/server_source_test.rb +1 -1
- data/test/new_relic/agent/configuration/yaml_source_test.rb +2 -2
- data/test/new_relic/agent/cpu_sampler_test.rb +1 -1
- data/test/new_relic/agent/cross_app_monitor_test.rb +3 -3
- data/test/new_relic/agent/cross_app_tracing_test.rb +5 -4
- data/test/new_relic/agent/database_test.rb +1 -1
- data/test/new_relic/agent/datastores/mongo/metric_generator_test.rb +1 -1
- data/test/new_relic/agent/datastores/mongo/metric_translator_test.rb +1 -1
- data/test/new_relic/agent/datastores/mongo/obfuscator_test.rb +1 -1
- data/test/new_relic/agent/datastores/mongo/statement_formatter_test.rb +2 -2
- data/test/new_relic/agent/error_collector/notice_error_test.rb +1 -1
- data/test/new_relic/agent/error_collector_test.rb +5 -3
- data/test/new_relic/agent/event_listener_test.rb +1 -1
- data/test/new_relic/agent/harvester_test.rb +1 -1
- data/test/new_relic/agent/http_clients/uri_util_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/action_controller_subscriber_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/action_view_subscriber_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/active_record_helper_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +495 -495
- data/test/new_relic/agent/instrumentation/active_record_subscriber_test.rb +2 -2
- data/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/instrumentation_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/metric_frame_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/net_instrumentation_test.rb +4 -6
- data/test/new_relic/agent/instrumentation/queue_time_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/rack_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/sinatra/transaction_namer_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/sinatra_test.rb +1 -1
- data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +7 -7
- data/test/new_relic/agent/javascript_instrumentor_test.rb +47 -55
- data/test/new_relic/agent/memcache_instrumentation_test.rb +1 -1
- data/test/new_relic/agent/memory_logger_test.rb +1 -1
- data/test/new_relic/agent/method_interrobang_test.rb +2 -3
- data/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +4 -4
- data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +1 -1
- data/test/new_relic/agent/method_tracer_test.rb +6 -7
- data/test/new_relic/agent/method_visibility_test.rb +1 -1
- data/test/new_relic/agent/new_relic_service_test.rb +129 -19
- data/test/new_relic/agent/obfuscator_test.rb +1 -1
- data/test/new_relic/agent/pipe_channel_manager_test.rb +143 -145
- data/test/new_relic/agent/pipe_service_test.rb +2 -4
- data/test/new_relic/agent/request_sampler_test.rb +23 -19
- data/test/new_relic/agent/rpm_agent_test.rb +3 -3
- data/test/new_relic/agent/rules_engine_test.rb +1 -1
- data/test/new_relic/agent/sampled_buffer_test.rb +1 -1
- data/test/new_relic/agent/sampler_collection_test.rb +3 -3
- data/test/new_relic/agent/sampler_test.rb +1 -1
- data/test/new_relic/agent/shim_agent_test.rb +1 -1
- data/test/new_relic/agent/sql_sampler_test.rb +4 -6
- data/test/new_relic/agent/stats_engine/gc_profiler_test.rb +1 -1
- data/test/new_relic/agent/stats_engine/metric_stats_test.rb +5 -5
- data/test/new_relic/agent/stats_engine/samplers_test.rb +2 -2
- data/test/new_relic/agent/stats_engine_test.rb +3 -3
- data/test/new_relic/agent/stats_hash_test.rb +2 -2
- data/test/new_relic/agent/stats_test.rb +1 -1
- data/test/new_relic/agent/threading/agent_thread_test.rb +2 -4
- data/test/new_relic/agent/threading/backtrace_node_test.rb +1 -1
- data/test/new_relic/agent/threading/backtrace_service_test.rb +5 -5
- data/test/new_relic/agent/threading/thread_profile_test.rb +1 -1
- data/test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb +1 -1
- data/test/new_relic/agent/transaction/force_persist_sample_buffer_test.rb +1 -1
- data/test/new_relic/agent/transaction/pop_test.rb +1 -1
- data/test/new_relic/agent/transaction/slowest_sample_buffer_test.rb +1 -1
- data/test/new_relic/agent/transaction/xray_sample_buffer_test.rb +1 -1
- data/test/new_relic/agent/transaction_interrobang_test.rb +2 -3
- data/test/new_relic/agent/transaction_sample_builder_test.rb +16 -14
- data/test/new_relic/agent/transaction_sampler_test.rb +16 -21
- data/test/new_relic/agent/transaction_state_test.rb +1 -1
- data/test/new_relic/agent/transaction_test.rb +61 -1
- data/test/new_relic/agent/transaction_timings_test.rb +1 -1
- data/test/new_relic/agent/worker_loop_test.rb +1 -1
- data/test/new_relic/agent_test.rb +2 -3
- data/test/new_relic/cli/deployments_test.rb +3 -3
- data/test/new_relic/coerce_test.rb +1 -1
- data/test/new_relic/collection_helper_test.rb +1 -1
- data/test/new_relic/control/class_methods_test.rb +2 -2
- data/test/new_relic/control/frameworks/rails_test.rb +1 -1
- data/test/new_relic/control_test.rb +9 -4
- data/test/new_relic/dependency_detection_test.rb +1 -1
- data/test/new_relic/dispatcher_test.rb +1 -1
- data/test/new_relic/environment_report_test.rb +4 -6
- data/test/new_relic/fake_collector.rb +1 -158
- data/test/new_relic/framework_test.rb +2 -1
- data/test/new_relic/http_client_test_cases.rb +2 -3
- data/test/new_relic/json_wrapper_test.rb +77 -0
- data/test/new_relic/language_support_test.rb +1 -1
- data/test/new_relic/license_test.rb +2 -2
- data/test/new_relic/load_test.rb +2 -8
- data/test/new_relic/local_environment_test.rb +1 -1
- data/test/new_relic/metric_data_test.rb +1 -1
- data/test/new_relic/metric_parser/metric_parser_test.rb +1 -1
- data/test/new_relic/metric_spec_test.rb +1 -1
- data/test/new_relic/multiverse_helpers.rb +26 -30
- data/test/new_relic/noticed_error_test.rb +1 -1
- data/test/new_relic/rack/agent_hooks_test.rb +1 -1
- data/test/new_relic/rack/all_test.rb +1 -1
- data/test/new_relic/rack/browser_monitoring_test.rb +4 -2
- data/test/new_relic/rack/deferred_instrumentation_test.rb +3 -5
- data/test/new_relic/rack/developer_mode_helper_test.rb +1 -1
- data/test/new_relic/rack/developer_mode_test.rb +1 -1
- data/test/new_relic/rack/error_collector_test.rb +8 -8
- data/test/new_relic/rack/transaction_reset_test.rb +35 -0
- data/test/new_relic/transaction_analysis/segment_summary_test.rb +2 -2
- data/test/new_relic/transaction_analysis_test.rb +1 -1
- data/test/new_relic/transaction_sample/composite_segment_test.rb +1 -1
- data/test/new_relic/transaction_sample/fake_segment_test.rb +2 -4
- data/test/new_relic/transaction_sample/segment_test.rb +3 -7
- data/test/new_relic/transaction_sample/summary_segment_test.rb +1 -1
- data/test/new_relic/transaction_sample_subtest_test.rb +1 -1
- data/test/new_relic/transaction_sample_test.rb +4 -6
- data/test/new_relic/version_number_test.rb +1 -1
- data/test/performance/lib/performance/instrumentation/gc_stats.rb +1 -1
- data/test/performance/lib/performance/json_reporter.rb +1 -1
- data/test/performance/suites/marshalling.rb +76 -0
- data/test/test_helper.rb +6 -39
- metadata +19 -12
- metadata.gz.sig +0 -0
- data/test/new_relic/helper_test.rb +0 -32
data/test/test_helper.rb
CHANGED
@@ -14,6 +14,10 @@ $LOAD_PATH.uniq!
|
|
14
14
|
|
15
15
|
require 'rubygems'
|
16
16
|
require 'rake'
|
17
|
+
|
18
|
+
require 'minitest/autorun'
|
19
|
+
require 'mocha/setup'
|
20
|
+
|
17
21
|
Dir.glob('test/helpers/*').each { |f| require f }
|
18
22
|
|
19
23
|
Dir.glob(File.join(NEWRELIC_PLUGIN_DIR,'test/helpers/*.rb')).each do |helper|
|
@@ -29,25 +33,13 @@ if ENV["NO_RAILS"]
|
|
29
33
|
else
|
30
34
|
begin
|
31
35
|
require 'config/environment'
|
32
|
-
# require File.join(File.dirname(__FILE__),'..','..','rpm_test_app','config','environment')
|
33
|
-
|
34
|
-
# we need 'rails/test_help' for Rails 4
|
35
|
-
# we need 'test_help' for Rails 2
|
36
|
-
# we need neither for Rails 3
|
37
|
-
begin
|
38
|
-
require 'rails/test_help'
|
39
|
-
rescue LoadError
|
40
|
-
begin
|
41
|
-
require 'test_help'
|
42
|
-
rescue LoadError
|
43
|
-
# ignore load problems on test help - it doesn't exist in rails 3
|
44
|
-
end
|
45
|
-
end
|
46
36
|
require 'newrelic_rpm'
|
47
37
|
rescue LoadError => e
|
48
38
|
puts "Running tests in standalone mode."
|
39
|
+
|
49
40
|
require 'bundler'
|
50
41
|
Bundler.require
|
42
|
+
|
51
43
|
require 'rails/all'
|
52
44
|
require 'newrelic_rpm'
|
53
45
|
|
@@ -63,19 +55,6 @@ else
|
|
63
55
|
end
|
64
56
|
end
|
65
57
|
|
66
|
-
require 'test/unit'
|
67
|
-
begin
|
68
|
-
require 'mocha/setup'
|
69
|
-
rescue LoadError
|
70
|
-
require 'mocha'
|
71
|
-
end
|
72
|
-
|
73
|
-
begin # 1.8.6
|
74
|
-
require 'mocha/integration/test_unit'
|
75
|
-
require 'mocha/integration/test_unit/assertion_counter'
|
76
|
-
rescue LoadError
|
77
|
-
end
|
78
|
-
|
79
58
|
require 'agent_helper'
|
80
59
|
|
81
60
|
def default_service(stubbed_method_overrides = {})
|
@@ -103,18 +82,6 @@ def default_service(stubbed_method_overrides = {})
|
|
103
82
|
service
|
104
83
|
end
|
105
84
|
|
106
|
-
class Test::Unit::TestCase
|
107
|
-
include Mocha::API
|
108
|
-
|
109
|
-
# we can delete this trick when we stop supporting rails2.0.x
|
110
|
-
if ENV['BRANCH'] != 'rails20'
|
111
|
-
# a hack because rails2.0.2 does not like double teardowns
|
112
|
-
def teardown
|
113
|
-
mocha_teardown
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
85
|
def with_verbose_logging
|
119
86
|
orig_logger = NewRelic::Agent.logger
|
120
87
|
$stderr.puts '', '---', ''
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
5
|
-
prerelease:
|
4
|
+
version: 3.7.2.190.beta
|
5
|
+
prerelease: 10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jason Clark
|
@@ -40,7 +40,7 @@ cert_chain:
|
|
40
40
|
cHUySWFQWE92bTNUOEc0TzZxWnZobkxoL1VpZW4rK0RqOGVGQmVjVFBvTThw
|
41
41
|
VmpLM3BoNQpuL0V3dVpDY0U2Z2h0Q0NNCi0tLS0tRU5EIENFUlRJRklDQVRF
|
42
42
|
LS0tLS0K
|
43
|
-
date: 2014-01-
|
43
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
44
44
|
dependencies:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: rake
|
@@ -203,21 +203,21 @@ dependencies:
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: 1.8.3
|
205
205
|
- !ruby/object:Gem::Dependency
|
206
|
-
name: guard-
|
206
|
+
name: guard-minitest
|
207
207
|
requirement: !ruby/object:Gem::Requirement
|
208
208
|
none: false
|
209
209
|
requirements:
|
210
|
-
- -
|
210
|
+
- - ! '>='
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
212
|
+
version: '0'
|
213
213
|
type: :development
|
214
214
|
prerelease: false
|
215
215
|
version_requirements: !ruby/object:Gem::Requirement
|
216
216
|
none: false
|
217
217
|
requirements:
|
218
|
-
- -
|
218
|
+
- - ! '>='
|
219
219
|
- !ruby/object:Gem::Version
|
220
|
-
version:
|
220
|
+
version: '0'
|
221
221
|
- !ruby/object:Gem::Dependency
|
222
222
|
name: rb-fsevent
|
223
223
|
requirement: !ruby/object:Gem::Requirement
|
@@ -438,6 +438,7 @@ files:
|
|
438
438
|
- lib/new_relic/delayed_job_injection.rb
|
439
439
|
- lib/new_relic/environment_report.rb
|
440
440
|
- lib/new_relic/helper.rb
|
441
|
+
- lib/new_relic/json_wrapper.rb
|
441
442
|
- lib/new_relic/language_support.rb
|
442
443
|
- lib/new_relic/latest_changes.rb
|
443
444
|
- lib/new_relic/local_environment.rb
|
@@ -452,6 +453,7 @@ files:
|
|
452
453
|
- lib/new_relic/rack/browser_monitoring.rb
|
453
454
|
- lib/new_relic/rack/developer_mode.rb
|
454
455
|
- lib/new_relic/rack/error_collector.rb
|
456
|
+
- lib/new_relic/rack/transaction_reset.rb
|
455
457
|
- lib/new_relic/recipes.rb
|
456
458
|
- lib/new_relic/timer_lib.rb
|
457
459
|
- lib/new_relic/transaction_analysis.rb
|
@@ -586,6 +588,7 @@ files:
|
|
586
588
|
- test/multiverse/suites/agent_only/collector_exception_handling_test.rb
|
587
589
|
- test/multiverse/suites/agent_only/config/newrelic.yml
|
588
590
|
- test/multiverse/suites/agent_only/cross_application_tracing_test.rb
|
591
|
+
- test/multiverse/suites/agent_only/encoding_handling_test.rb
|
589
592
|
- test/multiverse/suites/agent_only/harvest_timestamps_test.rb
|
590
593
|
- test/multiverse/suites/agent_only/http_response_code_test.rb
|
591
594
|
- test/multiverse/suites/agent_only/key_transactions_test.rb
|
@@ -594,6 +597,7 @@ files:
|
|
594
597
|
- test/multiverse/suites/agent_only/pipe_manager_test.rb
|
595
598
|
- test/multiverse/suites/agent_only/rename_rule_test.rb
|
596
599
|
- test/multiverse/suites/agent_only/rum_instrumentation_test.rb
|
600
|
+
- test/multiverse/suites/agent_only/script/loading.rb
|
597
601
|
- test/multiverse/suites/agent_only/service_timeout_test.rb
|
598
602
|
- test/multiverse/suites/agent_only/set_transaction_name_test.rb
|
599
603
|
- test/multiverse/suites/agent_only/ssl_test.rb
|
@@ -601,6 +605,8 @@ files:
|
|
601
605
|
- test/multiverse/suites/agent_only/testing_app.rb
|
602
606
|
- test/multiverse/suites/agent_only/thread_profiling_test.rb
|
603
607
|
- test/multiverse/suites/agent_only/xray_sessions_test.rb
|
608
|
+
- test/multiverse/suites/bare/Envfile
|
609
|
+
- test/multiverse/suites/bare/standalone_instrumentation_test.rb
|
604
610
|
- test/multiverse/suites/config_file_loading/Envfile
|
605
611
|
- test/multiverse/suites/config_file_loading/config_file_loading_test.rb
|
606
612
|
- test/multiverse/suites/curb/Envfile
|
@@ -794,8 +800,8 @@ files:
|
|
794
800
|
- test/new_relic/fake_external_server.rb
|
795
801
|
- test/new_relic/fake_server.rb
|
796
802
|
- test/new_relic/framework_test.rb
|
797
|
-
- test/new_relic/helper_test.rb
|
798
803
|
- test/new_relic/http_client_test_cases.rb
|
804
|
+
- test/new_relic/json_wrapper_test.rb
|
799
805
|
- test/new_relic/language_support_test.rb
|
800
806
|
- test/new_relic/license_test.rb
|
801
807
|
- test/new_relic/load_test.rb
|
@@ -812,6 +818,7 @@ files:
|
|
812
818
|
- test/new_relic/rack/developer_mode_helper_test.rb
|
813
819
|
- test/new_relic/rack/developer_mode_test.rb
|
814
820
|
- test/new_relic/rack/error_collector_test.rb
|
821
|
+
- test/new_relic/rack/transaction_reset_test.rb
|
815
822
|
- test/new_relic/transaction_analysis/segment_summary_test.rb
|
816
823
|
- test/new_relic/transaction_analysis_test.rb
|
817
824
|
- test/new_relic/transaction_sample/composite_segment_test.rb
|
@@ -981,9 +988,9 @@ post_install_message: ! "# New Relic Ruby Agent Release Notes #\n\n## v3.7.1 ##\
|
|
981
988
|
\ Historically framework specific code was necessary for the Ruby agent to\n successfully
|
982
989
|
report data after an app forked or daemonized. Gems or scripts\n with daemonizing
|
983
990
|
modes had to wait for agent support or find workarounds.\n\n With 3.7.1 setting
|
984
|
-
`
|
985
|
-
agent in child processes without requiring custom\n code. For now the feature
|
986
|
-
opt-in, but future releases may default it on.\n\n* Fix for missing HTTP time\n\n
|
991
|
+
`restart_thread_in_children: true` in your newrelic.yml\n automatically restarts
|
992
|
+
the agent in child processes without requiring custom\n code. For now the feature
|
993
|
+
is opt-in, but future releases may default it on.\n\n* Fix for missing HTTP time\n\n
|
987
994
|
\ The agent previously did not include connection establishment time for\n outgoing
|
988
995
|
Net::HTTP requests. This has been corrected, and reported HTTP\n timings should
|
989
996
|
now be more accurate.\n\n* Fix for Mongo ensure_index instrumentation (3.7.1.182)\n\n
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# This file is distributed under New Relic's license terms.
|
3
|
-
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
-
|
5
|
-
require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper'))
|
6
|
-
require 'test/unit'
|
7
|
-
require 'newrelic_rpm'
|
8
|
-
|
9
|
-
if RUBY_VERSION > '1.8.6'
|
10
|
-
|
11
|
-
class HelperTest < Test::Unit::TestCase
|
12
|
-
|
13
|
-
def test_json_serializer_method
|
14
|
-
obj = [
|
15
|
-
99, 'luftballons',
|
16
|
-
{
|
17
|
-
'Hast du etwas' => 'Zeit für mich',
|
18
|
-
'Dann singe ich' => {
|
19
|
-
'ein lied' => 'für dich'
|
20
|
-
}
|
21
|
-
}
|
22
|
-
]
|
23
|
-
copy = NewRelic.json_load( NewRelic.json_dump(obj) )
|
24
|
-
|
25
|
-
assert( obj == copy )
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
else
|
31
|
-
puts "Skipping tests in #{__FILE__} because 1.8.6 character encoding is, um, less than stellar"
|
32
|
-
end
|