newrelic_rpm 3.11.2.286 → 3.12.0.288
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/.yardopts +2 -0
- data/CHANGELOG +39 -4
- data/README.md +4 -2
- data/lib/new_relic/agent.rb +229 -214
- data/lib/new_relic/agent/agent.rb +23 -12
- data/lib/new_relic/agent/attribute_filter.rb +242 -0
- data/lib/new_relic/agent/attribute_processing.rb +62 -0
- data/lib/new_relic/agent/commands/xray_session_collection.rb +4 -1
- data/lib/new_relic/agent/configuration/default_source.rb +284 -30
- data/lib/new_relic/agent/configuration/high_security_source.rb +0 -8
- data/lib/new_relic/agent/configuration/manager.rb +1 -1
- data/lib/new_relic/agent/configuration/server_source.rb +86 -31
- data/lib/new_relic/agent/configuration/yaml_source.rb +1 -1
- data/lib/new_relic/agent/cross_app_monitor.rb +8 -13
- data/lib/new_relic/agent/cross_app_tracing.rb +15 -15
- data/lib/new_relic/agent/custom_event_aggregator.rb +6 -2
- data/lib/new_relic/agent/database.rb +15 -2
- data/lib/new_relic/agent/datastores.rb +52 -38
- data/lib/new_relic/agent/datastores/metric_helper.rb +2 -1
- data/lib/new_relic/agent/encoding_normalizer.rb +82 -0
- data/lib/new_relic/agent/error_collector.rb +125 -169
- data/lib/new_relic/agent/hash_extensions.rb +26 -0
- data/lib/new_relic/agent/http_clients/excon_wrappers.rb +13 -11
- data/lib/new_relic/agent/http_clients/uri_util.rb +9 -0
- data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +1 -3
- data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +1 -1
- data/lib/new_relic/agent/instrumentation/active_record_helper.rb +1 -1
- data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +12 -5
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +6 -7
- data/lib/new_relic/agent/instrumentation/curb.rb +6 -6
- data/lib/new_relic/agent/instrumentation/excon/middleware.rb +4 -4
- data/lib/new_relic/agent/instrumentation/grape.rb +4 -3
- data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +6 -3
- data/lib/new_relic/agent/instrumentation/rails/errors.rb +9 -3
- data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +6 -1
- data/lib/new_relic/agent/instrumentation/rails3/errors.rb +9 -7
- data/lib/new_relic/agent/instrumentation/rails4/errors.rb +8 -6
- data/lib/new_relic/agent/instrumentation/resque.rb +2 -3
- data/lib/new_relic/agent/instrumentation/sidekiq.rb +3 -3
- data/lib/new_relic/agent/instrumentation/typhoeus.rb +2 -2
- data/lib/new_relic/agent/javascript_instrumentor.rb +24 -16
- data/lib/new_relic/agent/parameter_filtering.rb +8 -1
- data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +2 -2
- data/lib/new_relic/agent/sql_sampler.rb +1 -0
- data/lib/new_relic/agent/stats.rb +0 -4
- data/lib/new_relic/agent/stats_engine/metric_stats.rb +5 -3
- data/lib/new_relic/agent/stats_engine/stats_hash.rb +4 -0
- data/lib/new_relic/agent/supported_versions.rb +2 -2
- data/lib/new_relic/agent/traced_method_stack.rb +3 -3
- data/lib/new_relic/agent/transaction.rb +141 -118
- data/lib/new_relic/agent/transaction/attributes.rb +161 -0
- data/lib/new_relic/agent/transaction/developer_mode_sample_buffer.rb +4 -4
- data/lib/new_relic/agent/transaction/trace.rb +150 -0
- data/lib/new_relic/agent/transaction/trace_node.rb +190 -0
- data/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +2 -2
- data/lib/new_relic/agent/transaction_event_aggregator.rb +23 -7
- data/lib/new_relic/agent/transaction_sample_builder.rb +37 -62
- data/lib/new_relic/agent/transaction_sampler.rb +29 -66
- data/lib/new_relic/cli/commands/install.rb +2 -2
- data/lib/new_relic/coerce.rb +15 -28
- data/lib/new_relic/json_wrapper.rb +14 -73
- data/lib/new_relic/noticed_error.rb +81 -5
- data/lib/new_relic/rack/browser_monitoring.rb +14 -19
- data/lib/new_relic/rack/developer_mode.rb +68 -14
- data/lib/new_relic/rack/developer_mode/segment_summary.rb +56 -0
- data/lib/new_relic/version.rb +2 -2
- data/newrelic.yml +19 -196
- data/test/agent_helper.rb +42 -36
- data/test/config/newrelic.yml +0 -1
- data/test/environments/rails40/Gemfile +1 -1
- data/test/environments/rails41/Gemfile +1 -1
- data/test/environments/rails42/Gemfile +1 -1
- data/test/fixtures/cross_agent_tests/attribute_configuration.json +35 -0
- data/test/fixtures/cross_agent_tests/sql_obfuscation/README.md +19 -12
- data/test/fixtures/cross_agent_tests/sql_obfuscation/sql_obfuscation.json +365 -0
- data/test/multiverse/lib/multiverse/suite.rb +5 -1
- data/test/multiverse/suites/active_record/active_record_test.rb +8 -8
- data/test/multiverse/suites/agent_only/agent_attributes_test.rb +145 -0
- data/test/multiverse/suites/agent_only/cross_application_tracing_test.rb +8 -0
- data/test/multiverse/suites/agent_only/custom_queue_time_test.rb +5 -1
- data/test/multiverse/suites/agent_only/encoding_handling_test.rb +6 -6
- data/test/multiverse/suites/agent_only/marshaling_test.rb +1 -1
- data/test/multiverse/suites/agent_only/set_transaction_name_test.rb +2 -3
- data/test/multiverse/suites/agent_only/synthetics_test.rb +3 -3
- data/test/multiverse/suites/agent_only/testing_app.rb +4 -0
- data/test/multiverse/suites/agent_only/thread_profiling_test.rb +1 -1
- data/test/multiverse/suites/agent_only/utilization_data_collection_test.rb +9 -7
- data/test/multiverse/suites/curb/Envfile +5 -6
- data/test/multiverse/suites/curb/curb_test.rb +4 -5
- data/test/multiverse/suites/datamapper/datamapper_test.rb +2 -2
- data/test/multiverse/suites/excon/Envfile +11 -4
- data/test/multiverse/suites/excon/excon_test.rb +5 -5
- data/test/multiverse/suites/grape/config/newrelic.yml +1 -0
- data/test/multiverse/suites/grape/grape_test.rb +76 -12
- data/test/multiverse/suites/grape/grape_test_api.rb +16 -0
- data/test/multiverse/suites/high_security/config/newrelic.yml +43 -3
- data/test/multiverse/suites/high_security/high_security_test.rb +165 -9
- data/test/multiverse/suites/httpclient/Envfile +5 -1
- data/test/multiverse/suites/httpclient/httpclient_test.rb +2 -2
- data/test/multiverse/suites/memcached/Envfile +1 -1
- data/test/multiverse/suites/mongo/Envfile +8 -1
- data/test/multiverse/suites/mongo/helpers/mongo_operation_tests.rb +29 -29
- data/test/multiverse/suites/mongo/mongo_unsupported_version_test.rb +43 -8
- data/test/multiverse/suites/rack/rack_parameter_filtering_test.rb +13 -3
- data/test/multiverse/suites/rails/Envfile +3 -3
- data/test/multiverse/suites/rails/error_tracing_test.rb +52 -31
- data/test/multiverse/suites/rails/gc_instrumentation_test.rb +1 -1
- data/test/multiverse/suites/rails/ignore_test.rb +1 -1
- data/test/multiverse/suites/rails/parameter_capture_test.rb +108 -40
- data/test/multiverse/suites/rails/request_statistics_test.rb +10 -4
- data/test/multiverse/suites/rails/view_instrumentation_test.rb +24 -24
- data/test/multiverse/suites/resque/instrumentation_test.rb +46 -12
- data/test/multiverse/suites/sequel/sequel_extension_test.rb +8 -8
- data/test/multiverse/suites/sequel/sequel_helpers.rb +11 -11
- data/test/multiverse/suites/sequel/sequel_plugin_test.rb +11 -11
- data/test/multiverse/suites/sidekiq/Envfile +1 -4
- data/test/multiverse/suites/sidekiq/after_suite.rb +9 -0
- data/test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb +49 -16
- data/test/multiverse/suites/sidekiq/test_worker.rb +1 -2
- data/test/multiverse/suites/sinatra/Envfile +1 -1
- data/test/multiverse/suites/sinatra/config/newrelic.yml +1 -0
- data/test/multiverse/suites/sinatra/sinatra_classic_test.rb +0 -4
- data/test/multiverse/suites/sinatra/sinatra_modular_test.rb +0 -4
- data/test/multiverse/suites/sinatra/sinatra_parameter_capture_test.rb +65 -0
- data/test/multiverse/suites/sinatra/sinatra_test_cases.rb +0 -11
- data/test/multiverse/suites/typhoeus/Envfile +8 -2
- data/test/multiverse/suites/typhoeus/typhoeus_test.rb +4 -4
- data/test/new_relic/agent/agent/connect_test.rb +13 -9
- data/test/new_relic/agent/agent_test.rb +34 -24
- data/test/new_relic/agent/attribute_filter_test.rb +218 -0
- data/test/new_relic/agent/attribute_processing_test.rb +160 -0
- data/test/new_relic/agent/configuration/default_source_test.rb +88 -0
- data/test/new_relic/agent/configuration/manager_test.rb +3 -4
- data/test/new_relic/agent/configuration/orphan_configuration_test.rb +3 -1
- data/test/new_relic/agent/configuration/server_source_test.rb +39 -0
- data/test/new_relic/agent/cross_app_monitor_test.rb +6 -30
- data/test/new_relic/agent/cross_app_tracing_test.rb +12 -12
- data/test/new_relic/agent/database/sql_obfuscation_test.rb +39 -65
- data/test/new_relic/agent/datastores/metric_helper_test.rb +36 -0
- data/test/new_relic/agent/encoding_normalizer_test.rb +66 -0
- data/test/new_relic/agent/error_collector_test.rb +181 -34
- data/test/new_relic/agent/hash_extensions_test.rb +34 -0
- data/test/new_relic/agent/instrumentation/action_controller_subscriber_test.rb +20 -23
- data/test/new_relic/agent/instrumentation/action_view_subscriber_test.rb +12 -12
- data/test/new_relic/agent/instrumentation/active_record_subscriber_test.rb +5 -5
- data/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +4 -4
- data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +21 -11
- data/test/new_relic/agent/javascript_instrumentor_test.rb +69 -45
- data/test/new_relic/agent/pipe_service_test.rb +2 -2
- data/test/new_relic/agent/stats_engine/gc_profiler_test.rb +1 -1
- data/test/new_relic/agent/stats_engine/metric_stats_test.rb +8 -7
- data/test/new_relic/agent/stats_engine/stats_hash_test.rb +2 -2
- data/test/new_relic/agent/threading/backtrace_node_test.rb +2 -2
- data/test/new_relic/agent/transaction/attributes_test.rb +276 -0
- data/test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb +10 -10
- data/test/new_relic/agent/transaction/trace_node_test.rb +361 -0
- data/test/new_relic/agent/transaction/trace_test.rb +394 -0
- data/test/new_relic/agent/transaction/xray_sample_buffer_test.rb +1 -1
- data/test/new_relic/agent/transaction_event_aggregator_test.rb +127 -57
- data/test/new_relic/agent/transaction_sample_builder_test.rb +70 -78
- data/test/new_relic/agent/transaction_sampler_test.rb +76 -185
- data/test/new_relic/agent/transaction_test.rb +283 -135
- data/test/new_relic/agent_test.rb +27 -12
- data/test/new_relic/cli/commands/install_test.rb +27 -0
- data/test/new_relic/coerce_test.rb +0 -59
- data/test/new_relic/data_container_tests.rb +5 -5
- data/test/new_relic/fake_collector.rb +27 -9
- data/test/new_relic/filtering_test_app.rb +2 -1
- data/test/new_relic/http_client_test_cases.rb +16 -16
- data/test/new_relic/json_wrapper_test.rb +0 -54
- data/test/new_relic/marshalling_test_cases.rb +1 -0
- data/test/new_relic/multiverse_helpers.rb +144 -0
- data/test/new_relic/noticed_error_test.rb +112 -9
- data/test/new_relic/rack/browser_monitoring_test.rb +12 -7
- data/test/new_relic/{transaction_analysis → rack/developer_mode}/segment_summary_test.rb +5 -4
- data/test/new_relic/rack/developer_mode_test.rb +17 -3
- data/test/new_relic/rack/error_collector_test.rb +1 -1
- data/test/performance/lib/performance/instrumentation/stackprof.rb +1 -1
- data/test/performance/script/runner +2 -2
- data/test/performance/suites/active_record.rb +3 -3
- data/test/performance/suites/agent_attributes.rb +62 -0
- data/test/performance/suites/rack_middleware.rb +78 -28
- data/test/performance/suites/transaction_tracing.rb +35 -0
- data/test/test_helper.rb +9 -1
- data/ui/helpers/developer_mode_helper.rb +16 -23
- data/ui/views/newrelic/_sample.rhtml +3 -3
- data/ui/views/newrelic/_segment.rhtml +1 -1
- data/ui/views/newrelic/_show_sample_summary.rhtml +1 -1
- data/ui/views/newrelic/show_sample.rhtml +5 -4
- metadata +23 -80
- data/lib/new_relic/agent/transaction/force_persist_sample_buffer.rb +0 -25
- data/lib/new_relic/transaction_analysis.rb +0 -80
- data/lib/new_relic/transaction_analysis/segment_summary.rb +0 -53
- data/lib/new_relic/transaction_sample.rb +0 -207
- data/lib/new_relic/transaction_sample/composite_segment.rb +0 -31
- data/lib/new_relic/transaction_sample/fake_segment.rb +0 -13
- data/lib/new_relic/transaction_sample/segment.rb +0 -197
- data/lib/new_relic/transaction_sample/summary_segment.rb +0 -25
- data/lib/new_relic/url_rule.rb +0 -18
- data/test/fixtures/cross_agent_tests/sql_obfuscation/back_quoted_identifiers.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/back_quoted_identifiers.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/comment_delimiters_in_strings.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/comment_delimiters_in_strings.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/double_quoted_identifiers.postgres.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/double_quoted_identifiers.postgres.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_line_comment_in_string.obfuscated +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_line_comment_in_string.sql +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_cstyle.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_cstyle.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_doubledash.obfuscated +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_doubledash.sql +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_hash.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_hash.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/escape_string_constants.postgres.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/escape_string_constants.postgres.sql +0 -4
- data/test/fixtures/cross_agent_tests/sql_obfuscation/malformed/unterminated_double_quoted_string.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/malformed/unterminated_single_quoted_string.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/multiple_literal_types.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/multiple_literal_types.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/numbers_in_identifiers.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/numbers_in_identifiers.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/numeric_literals.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/numeric_literals.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/README.md +0 -4
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/end_of_line_comments_with_quotes.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/end_of_line_comments_with_quotes.sql +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_comments_and_quotes.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_comments_and_quotes.sql +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_comments_and_newlines.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_comments_and_newlines.sql +0 -4
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_end_of_line_comments.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_end_of_line_comments.sql +0 -3
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/quote_delimiters_in_comments.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/pathological/quote_delimiters_in_comments.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_double_quoted.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_double_quoted.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_single_quoted.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_single_quoted.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_backslash_and_twin_single_quotes.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_backslash_and_twin_single_quotes.sql +0 -4
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_double_quote.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_double_quote.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_newline.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_newline.sql +0 -2
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_single_quote.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_single_quote.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_escaped_quotes.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_escaped_quotes.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_backslash.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_backslash.sql +0 -4
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash.mysql.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash.mysql.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash_single_quoted.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash_single_quoted.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_quote.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_quote.sql +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_twin_single_quotes.obfuscated +0 -1
- data/test/fixtures/cross_agent_tests/sql_obfuscation/string_with_twin_single_quotes.sql +0 -1
- data/test/new_relic/agent/error_collector/notice_error_test.rb +0 -261
- data/test/new_relic/agent/transaction/force_persist_sample_buffer_test.rb +0 -52
- data/test/new_relic/transaction_analysis_test.rb +0 -125
- data/test/new_relic/transaction_sample/composite_segment_test.rb +0 -38
- data/test/new_relic/transaction_sample/fake_segment_test.rb +0 -18
- data/test/new_relic/transaction_sample/segment_test.rb +0 -361
- data/test/new_relic/transaction_sample/summary_segment_test.rb +0 -34
- data/test/new_relic/transaction_sample_subtest_test.rb +0 -41
- data/test/new_relic/transaction_sample_test.rb +0 -361
@@ -3,6 +3,13 @@
|
|
3
3
|
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
4
|
|
5
5
|
class TransactionTracingPerfTests < Performance::TestCase
|
6
|
+
FAILURE_MESSAGE = "O_o"
|
7
|
+
|
8
|
+
BOO = "boo"
|
9
|
+
HOO = "hoo"
|
10
|
+
OH = "oh"
|
11
|
+
NO = "no"
|
12
|
+
|
6
13
|
def klass(instrument)
|
7
14
|
Class.new do
|
8
15
|
def self.name
|
@@ -13,12 +20,22 @@ class TransactionTracingPerfTests < Performance::TestCase
|
|
13
20
|
method_4
|
14
21
|
end
|
15
22
|
|
23
|
+
def transaction_with_attributes
|
24
|
+
method_4
|
25
|
+
NewRelic::Agent.add_custom_attributes(BOO => HOO, OH => NO)
|
26
|
+
end
|
27
|
+
|
16
28
|
def long_transaction(n)
|
17
29
|
n.times do
|
18
30
|
method_1
|
19
31
|
end
|
20
32
|
end
|
21
33
|
|
34
|
+
|
35
|
+
def failure
|
36
|
+
raise FAILURE_MESSAGE
|
37
|
+
end
|
38
|
+
|
22
39
|
def method_1
|
23
40
|
method_2
|
24
41
|
method_3
|
@@ -36,12 +53,16 @@ class TransactionTracingPerfTests < Performance::TestCase
|
|
36
53
|
if instrument
|
37
54
|
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
38
55
|
include NewRelic::Agent::MethodTracer
|
56
|
+
|
39
57
|
add_method_tracer :method_1
|
40
58
|
add_method_tracer :method_2
|
41
59
|
add_method_tracer :method_3
|
42
60
|
add_method_tracer :method_4
|
61
|
+
|
43
62
|
add_transaction_tracer :short_transaction
|
44
63
|
add_transaction_tracer :long_transaction
|
64
|
+
add_transaction_tracer :transaction_with_attributes
|
65
|
+
add_transaction_tracer :failure
|
45
66
|
end
|
46
67
|
|
47
68
|
end
|
@@ -68,4 +89,18 @@ class TransactionTracingPerfTests < Performance::TestCase
|
|
68
89
|
@dummy.long_transaction(10000)
|
69
90
|
end
|
70
91
|
end
|
92
|
+
|
93
|
+
def test_with_custom_attributes
|
94
|
+
measure { @dummy.transaction_with_attributes }
|
95
|
+
end
|
96
|
+
|
97
|
+
def test_failure
|
98
|
+
measure do
|
99
|
+
begin
|
100
|
+
@dummy.failure
|
101
|
+
rescue
|
102
|
+
# Whatever...
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
71
106
|
end
|
data/test/test_helper.rb
CHANGED
@@ -30,6 +30,14 @@ Hometown.watch(::Thread)
|
|
30
30
|
# us to rely on, so instead we'll just watch for it.
|
31
31
|
class Minitest::Test
|
32
32
|
def before_setup
|
33
|
+
if self.respond_to?(:name)
|
34
|
+
test_method_name = self.name
|
35
|
+
else
|
36
|
+
test_method_name = self.__name__
|
37
|
+
end
|
38
|
+
|
39
|
+
NewRelic::Agent.logger.info("*** #{self.class}##{test_method_name} **")
|
40
|
+
|
33
41
|
@__thread_count = ruby_threads.count
|
34
42
|
super
|
35
43
|
end
|
@@ -240,7 +248,7 @@ module TransactionSampleTestHelper
|
|
240
248
|
sampler = nil
|
241
249
|
state = NewRelic::Agent::TransactionState.tl_get
|
242
250
|
|
243
|
-
request = stub(:
|
251
|
+
request = stub(:path => path)
|
244
252
|
|
245
253
|
in_transaction("Controller/sandwiches/index", :request => request) do
|
246
254
|
sampler = NewRelic::Agent.instance.transaction_sampler
|
@@ -17,7 +17,7 @@ module NewRelic::DeveloperModeHelper
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def trace_row_display_limit_reached
|
20
|
-
(!@
|
20
|
+
(!@detail_node_count.nil? && @detail_node_count > trace_row_display_limit) || sql_segments(@sample).length > trace_row_display_limit
|
21
21
|
end
|
22
22
|
|
23
23
|
# return the highest level in the call stack for the trace that is not rails or
|
@@ -101,7 +101,7 @@ module NewRelic::DeveloperModeHelper
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def explain_sql_url(segment)
|
104
|
-
"explain_sql?id=#{@sample.sample_id}&segment=#{segment.
|
104
|
+
"explain_sql?id=#{@sample.sample_id}&segment=#{segment.object_id}"
|
105
105
|
end
|
106
106
|
|
107
107
|
def segment_duration_value(segment)
|
@@ -115,7 +115,7 @@ module NewRelic::DeveloperModeHelper
|
|
115
115
|
def render_sample_details(sample)
|
116
116
|
@indentation_depth=0
|
117
117
|
# skip past the root segments to the first child, which is always the controller
|
118
|
-
first_segment = sample.
|
118
|
+
first_segment = sample.root_node.called_nodes.first
|
119
119
|
|
120
120
|
# render the segments, then the css classes to indent them
|
121
121
|
render_segment_details(first_segment).to_s + render_indentation_classes(@indentation_depth).to_s
|
@@ -129,22 +129,22 @@ module NewRelic::DeveloperModeHelper
|
|
129
129
|
|
130
130
|
def expand_segment_image(segment, depth)
|
131
131
|
if depth > 0
|
132
|
-
if !segment.
|
132
|
+
if !segment.called_nodes.empty?
|
133
133
|
row_class =segment_child_row_class(segment)
|
134
|
-
link_to_function("<img src=\"#{collapsed_image_path}\" id=\"image_#{row_class}\" class_for_children=\"#{row_class}\" class=\"#{(!segment.
|
134
|
+
link_to_function("<img src=\"#{collapsed_image_path}\" id=\"image_#{row_class}\" class_for_children=\"#{row_class}\" class=\"#{(!segment.called_nodes.empty?) ? 'parent_segment_image' : 'child_segment_image'}\" />", "toggle_row_class(this)")
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
139
|
def segment_child_row_class(segment)
|
140
|
-
"segment#{segment.
|
140
|
+
"segment#{segment.object_id}"
|
141
141
|
end
|
142
142
|
|
143
143
|
def summary_pie_chart(sample, width, height)
|
144
144
|
pie_chart = GooglePieChart.new
|
145
145
|
pie_chart.color, pie_chart.width, pie_chart.height = '6688AA', width, height
|
146
146
|
|
147
|
-
chart_data =
|
147
|
+
chart_data = breakdown_data(sample, 6)
|
148
148
|
chart_data.each { |s| pie_chart.add_data_point dev_name(s.metric_name), to_ms(s.exclusive_time) }
|
149
149
|
|
150
150
|
pie_chart.render
|
@@ -153,10 +153,8 @@ module NewRelic::DeveloperModeHelper
|
|
153
153
|
def segment_row_classes(segment, depth)
|
154
154
|
classes = []
|
155
155
|
|
156
|
-
classes << "segment#{segment.
|
157
|
-
|
156
|
+
classes << "segment#{segment.parent_node.object_id}" if depth > 1
|
158
157
|
classes << "view_segment" if segment.metric_name.index('View') == 0
|
159
|
-
classes << "summary_segment" if segment.is_a?(NewRelic::TransactionSample::CompositeSegment)
|
160
158
|
|
161
159
|
classes.join(' ')
|
162
160
|
end
|
@@ -171,7 +169,7 @@ module NewRelic::DeveloperModeHelper
|
|
171
169
|
end
|
172
170
|
|
173
171
|
def sql_link_mouseover_options(segment)
|
174
|
-
{ :onmouseover => "sql_mouse_over(#{segment.
|
172
|
+
{ :onmouseover => "sql_mouse_over(#{segment.object_id})", :onmouseout => "sql_mouse_out(#{segment.object_id})"}
|
175
173
|
end
|
176
174
|
|
177
175
|
def explain_sql_link(segment, child_sql = false)
|
@@ -183,7 +181,7 @@ module NewRelic::DeveloperModeHelper
|
|
183
181
|
explain_sql_link segment
|
184
182
|
else
|
185
183
|
links = []
|
186
|
-
segment.
|
184
|
+
segment.called_nodes.each do |child|
|
187
185
|
if child[:sql]
|
188
186
|
links << explain_sql_link(child, true)
|
189
187
|
end
|
@@ -204,22 +202,17 @@ module NewRelic::DeveloperModeHelper
|
|
204
202
|
end
|
205
203
|
|
206
204
|
def render_segment_details(segment, depth=0)
|
207
|
-
@
|
208
|
-
@
|
205
|
+
@detail_node_count ||= 0
|
206
|
+
@detail_node_count += 1
|
209
207
|
|
210
|
-
return '' if @
|
208
|
+
return '' if @detail_node_count > trace_row_display_limit
|
211
209
|
|
212
210
|
@indentation_depth = depth if depth > @indentation_depth
|
213
211
|
repeat = nil
|
214
|
-
|
215
|
-
|
216
|
-
else
|
217
|
-
repeat = segment.parent_segment.detail_segments.length if segment.parent_segment.is_a?(NewRelic::TransactionSample::CompositeSegment)
|
218
|
-
html = render(:partial => 'segment', :object => [segment, depth, repeat])
|
219
|
-
depth += 1
|
220
|
-
end
|
212
|
+
html = render(:partial => 'segment', :object => [segment, depth, repeat])
|
213
|
+
depth += 1
|
221
214
|
|
222
|
-
segment.
|
215
|
+
segment.called_nodes.each do |child|
|
223
216
|
html << render_segment_details(child, depth)
|
224
217
|
end
|
225
218
|
|
@@ -1,20 +1,20 @@
|
|
1
1
|
<% sample = object %>
|
2
2
|
<tr class="<%= cycle('even_row', 'odd_row') %>">
|
3
3
|
<td align=right nowrap=true>
|
4
|
-
<%= Time.at(sample.
|
4
|
+
<%= Time.at(sample.start_time).strftime "%H:%M:%S" %>
|
5
5
|
</td>
|
6
6
|
<td align=right nowrap=true>
|
7
7
|
<%= colorize(sample.duration, 1, 2) %> ms
|
8
8
|
</td>
|
9
9
|
<td>
|
10
|
-
<%= link_to "#{sample.
|
10
|
+
<%= link_to "#{sample.uri}", "show_sample_summary?id=#{sample.sample_id}" %>
|
11
11
|
</td>
|
12
12
|
<td>
|
13
13
|
<% if sample.profile %>
|
14
14
|
<%= link_to "[Profile]", "show_sample_summary?id=#{sample.sample_id}" %>
|
15
15
|
<% else %>
|
16
16
|
<%= link_to "[Detail]", "show_sample_detail?id=#{sample.sample_id}" %><br/>
|
17
|
-
<%= link_to "[SQL (#{sample.
|
17
|
+
<%= link_to "[SQL (#{sql_segments(sample).size})]", "show_sample_sql?id=#{sample.sample_id}" %>
|
18
18
|
<% end %>
|
19
19
|
</td>
|
20
20
|
</tr>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<tr style="<%= 'display:none' if indent > 1 %>" child_row_class="<%=segment_child_row_class(segment)%>" onmouseover="mouse_over_row(this)" onmouseout="mouse_out_row(this)" class='<%=segment_row_classes(segment, indent)%>'>
|
3
3
|
|
4
4
|
<td nowrap=true>
|
5
|
-
<div class="segment_indent_level<%=indent%> <%='leaf_segment' if segment.
|
5
|
+
<div class="segment_indent_level<%=indent%> <%='leaf_segment' if segment.called_nodes.empty?%>">
|
6
6
|
<div style="display:inline;">
|
7
7
|
<%= expand_segment_image(segment, indent) %>
|
8
8
|
</div>
|
@@ -3,15 +3,15 @@
|
|
3
3
|
<table class="light_background">
|
4
4
|
<tr>
|
5
5
|
<th>URL:</th>
|
6
|
-
<td><%= @sample.
|
6
|
+
<td><%= @sample.uri %></td>
|
7
7
|
</tr>
|
8
8
|
<tr>
|
9
9
|
<th>Controller:</th>
|
10
|
-
<td><%= @sample_controller_name%></td>
|
10
|
+
<td><%= @sample_controller_name %></td>
|
11
11
|
</tr>
|
12
12
|
<tr>
|
13
13
|
<th>Action:</th>
|
14
|
-
<td><%= @sample_action_name%></td>
|
14
|
+
<td><%= @sample_action_name %></td>
|
15
15
|
</tr>
|
16
16
|
<tr>
|
17
17
|
<th>Start Time:</th>
|
@@ -23,7 +23,8 @@
|
|
23
23
|
</tr>
|
24
24
|
<tr>
|
25
25
|
<th>CPU Burn:</th>
|
26
|
-
|
26
|
+
<% cpu_time = @sample.attributes.intrinsic_attributes_for(NewRelic::Agent::AttributeFilter::DST_TRANSACTION_TRACER)[:cpu_time] %>
|
27
|
+
<td><%= "#{to_ms(cpu_time)} ms" if cpu_time %></td>
|
27
28
|
</tr>
|
28
29
|
|
29
30
|
<% unless @custom_params.empty? %>
|
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.
|
4
|
+
version: 3.12.0.288
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Clark
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-04-
|
15
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -228,6 +228,8 @@ files:
|
|
228
228
|
- lib/new_relic/agent.rb
|
229
229
|
- lib/new_relic/agent/agent.rb
|
230
230
|
- lib/new_relic/agent/agent_logger.rb
|
231
|
+
- lib/new_relic/agent/attribute_filter.rb
|
232
|
+
- lib/new_relic/agent/attribute_processing.rb
|
231
233
|
- lib/new_relic/agent/audit_logger.rb
|
232
234
|
- lib/new_relic/agent/autostart.rb
|
233
235
|
- lib/new_relic/agent/busy_calculator.rb
|
@@ -261,11 +263,13 @@ files:
|
|
261
263
|
- lib/new_relic/agent/datastores/mongo/obfuscator.rb
|
262
264
|
- lib/new_relic/agent/datastores/mongo/statement_formatter.rb
|
263
265
|
- lib/new_relic/agent/deprecator.rb
|
266
|
+
- lib/new_relic/agent/encoding_normalizer.rb
|
264
267
|
- lib/new_relic/agent/error_collector.rb
|
265
268
|
- lib/new_relic/agent/event_buffer.rb
|
266
269
|
- lib/new_relic/agent/event_listener.rb
|
267
270
|
- lib/new_relic/agent/event_loop.rb
|
268
271
|
- lib/new_relic/agent/harvester.rb
|
272
|
+
- lib/new_relic/agent/hash_extensions.rb
|
269
273
|
- lib/new_relic/agent/hostname.rb
|
270
274
|
- lib/new_relic/agent/http_clients/curb_wrappers.rb
|
271
275
|
- lib/new_relic/agent/http_clients/excon_wrappers.rb
|
@@ -373,10 +377,12 @@ files:
|
|
373
377
|
- lib/new_relic/agent/threading/thread_profile.rb
|
374
378
|
- lib/new_relic/agent/traced_method_stack.rb
|
375
379
|
- lib/new_relic/agent/transaction.rb
|
380
|
+
- lib/new_relic/agent/transaction/attributes.rb
|
376
381
|
- lib/new_relic/agent/transaction/developer_mode_sample_buffer.rb
|
377
|
-
- lib/new_relic/agent/transaction/force_persist_sample_buffer.rb
|
378
382
|
- lib/new_relic/agent/transaction/slowest_sample_buffer.rb
|
379
383
|
- lib/new_relic/agent/transaction/synthetics_sample_buffer.rb
|
384
|
+
- lib/new_relic/agent/transaction/trace.rb
|
385
|
+
- lib/new_relic/agent/transaction/trace_node.rb
|
380
386
|
- lib/new_relic/agent/transaction/transaction_sample_buffer.rb
|
381
387
|
- lib/new_relic/agent/transaction/xray_sample_buffer.rb
|
382
388
|
- lib/new_relic/agent/transaction_event_aggregator.rb
|
@@ -430,19 +436,12 @@ files:
|
|
430
436
|
- lib/new_relic/rack/agent_middleware.rb
|
431
437
|
- lib/new_relic/rack/browser_monitoring.rb
|
432
438
|
- lib/new_relic/rack/developer_mode.rb
|
439
|
+
- lib/new_relic/rack/developer_mode/segment_summary.rb
|
433
440
|
- lib/new_relic/rack/error_collector.rb
|
434
441
|
- lib/new_relic/recipes.rb
|
435
442
|
- lib/new_relic/recipes/capistrano3.rb
|
436
443
|
- lib/new_relic/recipes/capistrano_legacy.rb
|
437
444
|
- lib/new_relic/timer_lib.rb
|
438
|
-
- lib/new_relic/transaction_analysis.rb
|
439
|
-
- lib/new_relic/transaction_analysis/segment_summary.rb
|
440
|
-
- lib/new_relic/transaction_sample.rb
|
441
|
-
- lib/new_relic/transaction_sample/composite_segment.rb
|
442
|
-
- lib/new_relic/transaction_sample/fake_segment.rb
|
443
|
-
- lib/new_relic/transaction_sample/segment.rb
|
444
|
-
- lib/new_relic/transaction_sample/summary_segment.rb
|
445
|
-
- lib/new_relic/url_rule.rb
|
446
445
|
- lib/new_relic/version.rb
|
447
446
|
- lib/newrelic_rpm.rb
|
448
447
|
- lib/sequel/extensions/newrelic_instrumentation.rb
|
@@ -698,65 +697,7 @@ files:
|
|
698
697
|
- test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_with_others.html
|
699
698
|
- test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_with_spaces.html
|
700
699
|
- test/fixtures/cross_agent_tests/sql_obfuscation/README.md
|
701
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/
|
702
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/back_quoted_identifiers.mysql.sql
|
703
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/comment_delimiters_in_strings.obfuscated
|
704
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/comment_delimiters_in_strings.sql
|
705
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/double_quoted_identifiers.postgres.obfuscated
|
706
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/double_quoted_identifiers.postgres.sql
|
707
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_line_comment_in_string.obfuscated
|
708
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_line_comment_in_string.sql
|
709
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_cstyle.obfuscated
|
710
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_cstyle.sql
|
711
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_doubledash.obfuscated
|
712
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_doubledash.sql
|
713
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_hash.obfuscated
|
714
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_hash.sql
|
715
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/escape_string_constants.postgres.obfuscated
|
716
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/escape_string_constants.postgres.sql
|
717
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/malformed/unterminated_double_quoted_string.mysql.sql
|
718
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/malformed/unterminated_single_quoted_string.sql
|
719
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/multiple_literal_types.mysql.obfuscated
|
720
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/multiple_literal_types.mysql.sql
|
721
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/numbers_in_identifiers.obfuscated
|
722
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/numbers_in_identifiers.sql
|
723
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/numeric_literals.obfuscated
|
724
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/numeric_literals.sql
|
725
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/README.md
|
726
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/end_of_line_comments_with_quotes.obfuscated
|
727
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/end_of_line_comments_with_quotes.sql
|
728
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_comments_and_quotes.obfuscated
|
729
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_comments_and_quotes.sql
|
730
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_comments_and_newlines.obfuscated
|
731
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_comments_and_newlines.sql
|
732
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_end_of_line_comments.obfuscated
|
733
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/mixed_quotes_end_of_line_comments.sql
|
734
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/quote_delimiters_in_comments.obfuscated
|
735
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/pathological/quote_delimiters_in_comments.sql
|
736
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_double_quoted.mysql.obfuscated
|
737
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_double_quoted.mysql.sql
|
738
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_single_quoted.obfuscated
|
739
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_single_quoted.sql
|
740
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_backslash_and_twin_single_quotes.obfuscated
|
741
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_backslash_and_twin_single_quotes.sql
|
742
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_double_quote.obfuscated
|
743
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_double_quote.sql
|
744
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_newline.obfuscated
|
745
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_newline.sql
|
746
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_single_quote.mysql.obfuscated
|
747
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_embedded_single_quote.mysql.sql
|
748
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_escaped_quotes.mysql.obfuscated
|
749
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_escaped_quotes.mysql.sql
|
750
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_backslash.obfuscated
|
751
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_backslash.sql
|
752
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash.mysql.obfuscated
|
753
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash.mysql.sql
|
754
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash_single_quoted.obfuscated
|
755
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_backslash_single_quoted.sql
|
756
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_quote.obfuscated
|
757
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_trailing_escaped_quote.sql
|
758
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_twin_single_quotes.obfuscated
|
759
|
-
- test/fixtures/cross_agent_tests/sql_obfuscation/string_with_twin_single_quotes.sql
|
700
|
+
- test/fixtures/cross_agent_tests/sql_obfuscation/sql_obfuscation.json
|
760
701
|
- test/fixtures/cross_agent_tests/sql_parsing.json
|
761
702
|
- test/fixtures/cross_agent_tests/synthetics/README.md
|
762
703
|
- test/fixtures/cross_agent_tests/synthetics/synthetics.json
|
@@ -792,6 +733,7 @@ files:
|
|
792
733
|
- test/multiverse/suites/activemerchant/Envfile
|
793
734
|
- test/multiverse/suites/activemerchant/activemerchant_test.rb
|
794
735
|
- test/multiverse/suites/agent_only/Envfile
|
736
|
+
- test/multiverse/suites/agent_only/agent_attributes_test.rb
|
795
737
|
- test/multiverse/suites/agent_only/agent_run_id_handling_test.rb
|
796
738
|
- test/multiverse/suites/agent_only/audit_log_test.rb
|
797
739
|
- test/multiverse/suites/agent_only/collector_exception_handling_test.rb
|
@@ -968,6 +910,7 @@ files:
|
|
968
910
|
- test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb
|
969
911
|
- test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb
|
970
912
|
- test/multiverse/suites/sinatra/sinatra_modular_test.rb
|
913
|
+
- test/multiverse/suites/sinatra/sinatra_parameter_capture_test.rb
|
971
914
|
- test/multiverse/suites/sinatra/sinatra_routes_test.rb
|
972
915
|
- test/multiverse/suites/sinatra/sinatra_test_cases.rb
|
973
916
|
- test/multiverse/suites/typhoeus/Envfile
|
@@ -997,6 +940,8 @@ files:
|
|
997
940
|
- test/new_relic/agent/agent_test.rb
|
998
941
|
- test/new_relic/agent/agent_test_controller.rb
|
999
942
|
- test/new_relic/agent/apdex_from_server_test.rb
|
943
|
+
- test/new_relic/agent/attribute_filter_test.rb
|
944
|
+
- test/new_relic/agent/attribute_processing_test.rb
|
1000
945
|
- test/new_relic/agent/audit_logger_test.rb
|
1001
946
|
- test/new_relic/agent/autostart_test.rb
|
1002
947
|
- test/new_relic/agent/busy_calculator_test.rb
|
@@ -1026,12 +971,13 @@ files:
|
|
1026
971
|
- test/new_relic/agent/datastores/mongo/statement_formatter_test.rb
|
1027
972
|
- test/new_relic/agent/datastores_test.rb
|
1028
973
|
- test/new_relic/agent/deprecator_test.rb
|
1029
|
-
- test/new_relic/agent/
|
974
|
+
- test/new_relic/agent/encoding_normalizer_test.rb
|
1030
975
|
- test/new_relic/agent/error_collector_test.rb
|
1031
976
|
- test/new_relic/agent/event_buffer_test_cases.rb
|
1032
977
|
- test/new_relic/agent/event_listener_test.rb
|
1033
978
|
- test/new_relic/agent/event_loop_test.rb
|
1034
979
|
- test/new_relic/agent/harvester_test.rb
|
980
|
+
- test/new_relic/agent/hash_extensions_test.rb
|
1035
981
|
- test/new_relic/agent/hostname_test.rb
|
1036
982
|
- test/new_relic/agent/http_clients/uri_util_test.rb
|
1037
983
|
- test/new_relic/agent/inbound_request_monitor_test.rb
|
@@ -1091,10 +1037,12 @@ files:
|
|
1091
1037
|
- test/new_relic/agent/threading/thread_profile_test.rb
|
1092
1038
|
- test/new_relic/agent/threading/threaded_test_case.rb
|
1093
1039
|
- test/new_relic/agent/traced_method_stack_test.rb
|
1040
|
+
- test/new_relic/agent/transaction/attributes_test.rb
|
1094
1041
|
- test/new_relic/agent/transaction/developer_mode_sample_buffer_test.rb
|
1095
|
-
- test/new_relic/agent/transaction/force_persist_sample_buffer_test.rb
|
1096
1042
|
- test/new_relic/agent/transaction/slowest_sample_buffer_test.rb
|
1097
1043
|
- test/new_relic/agent/transaction/synthetics_sample_buffer_test.rb
|
1044
|
+
- test/new_relic/agent/transaction/trace_node_test.rb
|
1045
|
+
- test/new_relic/agent/transaction/trace_test.rb
|
1098
1046
|
- test/new_relic/agent/transaction/xray_sample_buffer_test.rb
|
1099
1047
|
- test/new_relic/agent/transaction_event_aggregator_test.rb
|
1100
1048
|
- test/new_relic/agent/transaction_interrobang_test.rb
|
@@ -1113,6 +1061,7 @@ files:
|
|
1113
1061
|
- test/new_relic/agent/worker_loop_test.rb
|
1114
1062
|
- test/new_relic/agent_test.rb
|
1115
1063
|
- test/new_relic/cli/commands/deployments_test.rb
|
1064
|
+
- test/new_relic/cli/commands/install_test.rb
|
1116
1065
|
- test/new_relic/coerce_test.rb
|
1117
1066
|
- test/new_relic/collection_helper_test.rb
|
1118
1067
|
- test/new_relic/control/class_methods_test.rb
|
@@ -1149,18 +1098,11 @@ files:
|
|
1149
1098
|
- test/new_relic/rack/agent_middleware_test.rb
|
1150
1099
|
- test/new_relic/rack/browser_monitoring_test.rb
|
1151
1100
|
- test/new_relic/rack/deferred_instrumentation_test.rb
|
1101
|
+
- test/new_relic/rack/developer_mode/segment_summary_test.rb
|
1152
1102
|
- test/new_relic/rack/developer_mode_helper_test.rb
|
1153
1103
|
- test/new_relic/rack/developer_mode_test.rb
|
1154
1104
|
- test/new_relic/rack/error_collector_test.rb
|
1155
|
-
- test/new_relic/transaction_analysis/segment_summary_test.rb
|
1156
|
-
- test/new_relic/transaction_analysis_test.rb
|
1157
1105
|
- test/new_relic/transaction_ignoring_test_cases.rb
|
1158
|
-
- test/new_relic/transaction_sample/composite_segment_test.rb
|
1159
|
-
- test/new_relic/transaction_sample/fake_segment_test.rb
|
1160
|
-
- test/new_relic/transaction_sample/segment_test.rb
|
1161
|
-
- test/new_relic/transaction_sample/summary_segment_test.rb
|
1162
|
-
- test/new_relic/transaction_sample_subtest_test.rb
|
1163
|
-
- test/new_relic/transaction_sample_test.rb
|
1164
1106
|
- test/new_relic/version_number_test.rb
|
1165
1107
|
- test/performance/README.md
|
1166
1108
|
- test/performance/lib/performance.rb
|
@@ -1188,6 +1130,7 @@ files:
|
|
1188
1130
|
- test/performance/script/mega-runner
|
1189
1131
|
- test/performance/script/runner
|
1190
1132
|
- test/performance/suites/active_record.rb
|
1133
|
+
- test/performance/suites/agent_attributes.rb
|
1191
1134
|
- test/performance/suites/config.rb
|
1192
1135
|
- test/performance/suites/marshalling.rb
|
1193
1136
|
- test/performance/suites/queue_time.rb
|