mmtrix_rpm 1.0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/.project +23 -0
- data/.travis.yml +12 -0
- data/.yardopts +21 -0
- data/CHANGELOG +2342 -0
- data/GUIDELINES_FOR_CONTRIBUTING.md +80 -0
- data/Gemfile +3 -0
- data/Guardfile +8 -0
- data/LICENSE +151 -0
- data/README.md +202 -0
- data/Rakefile +154 -0
- data/bin/mmtrix +13 -0
- data/bin/mmtrix_cmd +5 -0
- data/bin/mongrel_rpm +33 -0
- data/bin/nrdebug +279 -0
- data/cert/cacert.pem +1177 -0
- data/config/database.yml +5 -0
- data/config.dot +287 -0
- data/init.rb +32 -0
- data/install.rb +13 -0
- data/lib/conditional_vendored_dependency_detection.rb +7 -0
- data/lib/conditional_vendored_metric_parser.rb +9 -0
- data/lib/mmtrix/agent/agent.rb +1152 -0
- data/lib/mmtrix/agent/agent_logger.rb +184 -0
- data/lib/mmtrix/agent/attribute_filter.rb +242 -0
- data/lib/mmtrix/agent/attribute_processing.rb +62 -0
- data/lib/mmtrix/agent/audit_logger.rb +94 -0
- data/lib/mmtrix/agent/autostart.rb +65 -0
- data/lib/mmtrix/agent/aws_info.rb +90 -0
- data/lib/mmtrix/agent/busy_calculator.rb +117 -0
- data/lib/mmtrix/agent/chained_call.rb +17 -0
- data/lib/mmtrix/agent/commands/agent_command.rb +19 -0
- data/lib/mmtrix/agent/commands/agent_command_router.rb +160 -0
- data/lib/mmtrix/agent/commands/thread_profiler_session.rb +110 -0
- data/lib/mmtrix/agent/commands/xray_session.rb +55 -0
- data/lib/mmtrix/agent/commands/xray_session_collection.rb +161 -0
- data/lib/mmtrix/agent/configuration/default_source.rb +1471 -0
- data/lib/mmtrix/agent/configuration/dotted_hash.rb +50 -0
- data/lib/mmtrix/agent/configuration/environment_source.rb +116 -0
- data/lib/mmtrix/agent/configuration/high_security_source.rb +51 -0
- data/lib/mmtrix/agent/configuration/manager.rb +395 -0
- data/lib/mmtrix/agent/configuration/manual_source.rb +17 -0
- data/lib/mmtrix/agent/configuration/mask_defaults.rb +14 -0
- data/lib/mmtrix/agent/configuration/server_source.rb +117 -0
- data/lib/mmtrix/agent/configuration/yaml_source.rb +155 -0
- data/lib/mmtrix/agent/configuration.rb +35 -0
- data/lib/mmtrix/agent/cross_app_monitor.rb +178 -0
- data/lib/mmtrix/agent/cross_app_tracing.rb +339 -0
- data/lib/mmtrix/agent/custom_event_aggregator.rb +100 -0
- data/lib/mmtrix/agent/database/obfuscation_helpers.rb +78 -0
- data/lib/mmtrix/agent/database/obfuscator.rb +80 -0
- data/lib/mmtrix/agent/database/postgres_explain_obfuscator.rb +46 -0
- data/lib/mmtrix/agent/database.rb +325 -0
- data/lib/mmtrix/agent/datastores/metric_helper.rb +98 -0
- data/lib/mmtrix/agent/datastores/mongo/metric_translator.rb +191 -0
- data/lib/mmtrix/agent/datastores/mongo/obfuscator.rb +39 -0
- data/lib/mmtrix/agent/datastores/mongo/statement_formatter.rb +53 -0
- data/lib/mmtrix/agent/datastores/mongo.rb +29 -0
- data/lib/mmtrix/agent/datastores.rb +191 -0
- data/lib/mmtrix/agent/deprecator.rb +18 -0
- data/lib/mmtrix/agent/encoding_normalizer.rb +82 -0
- data/lib/mmtrix/agent/error_collector.rb +316 -0
- data/lib/mmtrix/agent/event_buffer.rb +84 -0
- data/lib/mmtrix/agent/event_listener.rb +47 -0
- data/lib/mmtrix/agent/event_loop.rb +193 -0
- data/lib/mmtrix/agent/harvester.rb +52 -0
- data/lib/mmtrix/agent/hash_extensions.rb +26 -0
- data/lib/mmtrix/agent/hostname.rb +30 -0
- data/lib/mmtrix/agent/http_clients/curb_wrappers.rb +67 -0
- data/lib/mmtrix/agent/http_clients/excon_wrappers.rb +67 -0
- data/lib/mmtrix/agent/http_clients/httpclient_wrappers.rb +63 -0
- data/lib/mmtrix/agent/http_clients/net_http_wrappers.rb +50 -0
- data/lib/mmtrix/agent/http_clients/typhoeus_wrappers.rb +75 -0
- data/lib/mmtrix/agent/http_clients/uri_util.rb +51 -0
- data/lib/mmtrix/agent/inbound_request_monitor.rb +41 -0
- data/lib/mmtrix/agent/instrumentation/action_controller_subscriber.rb +121 -0
- data/lib/mmtrix/agent/instrumentation/action_view_subscriber.rb +95 -0
- data/lib/mmtrix/agent/instrumentation/active_job.rb +90 -0
- data/lib/mmtrix/agent/instrumentation/active_merchant.rb +37 -0
- data/lib/mmtrix/agent/instrumentation/active_record.rb +105 -0
- data/lib/mmtrix/agent/instrumentation/active_record_4.rb +29 -0
- data/lib/mmtrix/agent/instrumentation/active_record_helper.rb +189 -0
- data/lib/mmtrix/agent/instrumentation/active_record_subscriber.rb +104 -0
- data/lib/mmtrix/agent/instrumentation/acts_as_solr.rb +72 -0
- data/lib/mmtrix/agent/instrumentation/authlogic.rb +25 -0
- data/lib/mmtrix/agent/instrumentation/controller_instrumentation.rb +458 -0
- data/lib/mmtrix/agent/instrumentation/curb.rb +191 -0
- data/lib/mmtrix/agent/instrumentation/data_mapper.rb +167 -0
- data/lib/mmtrix/agent/instrumentation/delayed_job_instrumentation.rb +56 -0
- data/lib/mmtrix/agent/instrumentation/evented_subscriber.rb +100 -0
- data/lib/mmtrix/agent/instrumentation/excon/connection.rb +33 -0
- data/lib/mmtrix/agent/instrumentation/excon/middleware.rb +57 -0
- data/lib/mmtrix/agent/instrumentation/excon.rb +72 -0
- data/lib/mmtrix/agent/instrumentation/grape.rb +111 -0
- data/lib/mmtrix/agent/instrumentation/httpclient.rb +46 -0
- data/lib/mmtrix/agent/instrumentation/ignore_actions.rb +41 -0
- data/lib/mmtrix/agent/instrumentation/memcache.rb +143 -0
- data/lib/mmtrix/agent/instrumentation/merb/controller.rb +44 -0
- data/lib/mmtrix/agent/instrumentation/merb/errors.rb +33 -0
- data/lib/mmtrix/agent/instrumentation/metric_frame.rb +39 -0
- data/lib/mmtrix/agent/instrumentation/middleware_proxy.rb +109 -0
- data/lib/mmtrix/agent/instrumentation/middleware_tracing.rb +87 -0
- data/lib/mmtrix/agent/instrumentation/mongo.rb +128 -0
- data/lib/mmtrix/agent/instrumentation/net.rb +36 -0
- data/lib/mmtrix/agent/instrumentation/padrino.rb +32 -0
- data/lib/mmtrix/agent/instrumentation/passenger_instrumentation.rb +27 -0
- data/lib/mmtrix/agent/instrumentation/queue_time.rb +78 -0
- data/lib/mmtrix/agent/instrumentation/rack.rb +186 -0
- data/lib/mmtrix/agent/instrumentation/rails/action_controller.rb +123 -0
- data/lib/mmtrix/agent/instrumentation/rails/action_web_service.rb +46 -0
- data/lib/mmtrix/agent/instrumentation/rails/errors.rb +51 -0
- data/lib/mmtrix/agent/instrumentation/rails3/action_controller.rb +173 -0
- data/lib/mmtrix/agent/instrumentation/rails3/errors.rb +47 -0
- data/lib/mmtrix/agent/instrumentation/rails4/action_controller.rb +29 -0
- data/lib/mmtrix/agent/instrumentation/rails4/action_view.rb +25 -0
- data/lib/mmtrix/agent/instrumentation/rails4/errors.rb +46 -0
- data/lib/mmtrix/agent/instrumentation/rails_middleware.rb +39 -0
- data/lib/mmtrix/agent/instrumentation/rainbows_instrumentation.rb +26 -0
- data/lib/mmtrix/agent/instrumentation/resque.rb +96 -0
- data/lib/mmtrix/agent/instrumentation/rubyprof.rb +26 -0
- data/lib/mmtrix/agent/instrumentation/sequel.rb +51 -0
- data/lib/mmtrix/agent/instrumentation/sequel_helper.rb +36 -0
- data/lib/mmtrix/agent/instrumentation/sidekiq.rb +72 -0
- data/lib/mmtrix/agent/instrumentation/sinatra/ignorer.rb +52 -0
- data/lib/mmtrix/agent/instrumentation/sinatra/transaction_namer.rb +56 -0
- data/lib/mmtrix/agent/instrumentation/sinatra.rb +188 -0
- data/lib/mmtrix/agent/instrumentation/sunspot.rb +33 -0
- data/lib/mmtrix/agent/instrumentation/typhoeus.rb +78 -0
- data/lib/mmtrix/agent/instrumentation.rb +13 -0
- data/lib/mmtrix/agent/internal_agent_error.rb +18 -0
- data/lib/mmtrix/agent/javascript_instrumentor.rb +196 -0
- data/lib/mmtrix/agent/log_once.rb +39 -0
- data/lib/mmtrix/agent/memory_logger.rb +59 -0
- data/lib/mmtrix/agent/method_tracer.rb +391 -0
- data/lib/mmtrix/agent/method_tracer_helpers.rb +92 -0
- data/lib/mmtrix/agent/mmtrix_service/encoders.rb +38 -0
- data/lib/mmtrix/agent/mmtrix_service/json_marshaller.rb +75 -0
- data/lib/mmtrix/agent/mmtrix_service/marshaller.rb +62 -0
- data/lib/mmtrix/agent/mmtrix_service/pruby_marshaller.rb +56 -0
- data/lib/mmtrix/agent/mmtrix_service.rb +580 -0
- data/lib/mmtrix/agent/null_logger.rb +21 -0
- data/lib/mmtrix/agent/obfuscator.rb +49 -0
- data/lib/mmtrix/agent/parameter_filtering.rb +44 -0
- data/lib/mmtrix/agent/pipe_channel_manager.rb +277 -0
- data/lib/mmtrix/agent/pipe_service.rb +84 -0
- data/lib/mmtrix/agent/rules_engine/replacement_rule.rb +76 -0
- data/lib/mmtrix/agent/rules_engine/segment_terms_rule.rb +48 -0
- data/lib/mmtrix/agent/rules_engine.rb +58 -0
- data/lib/mmtrix/agent/sampled_buffer.rb +51 -0
- data/lib/mmtrix/agent/sampler.rb +64 -0
- data/lib/mmtrix/agent/sampler_collection.rb +72 -0
- data/lib/mmtrix/agent/samplers/cpu_sampler.rb +76 -0
- data/lib/mmtrix/agent/samplers/delayed_job_sampler.rb +111 -0
- data/lib/mmtrix/agent/samplers/memory_sampler.rb +149 -0
- data/lib/mmtrix/agent/samplers/object_sampler.rb +24 -0
- data/lib/mmtrix/agent/samplers/vm_sampler.rb +126 -0
- data/lib/mmtrix/agent/sized_buffer.rb +23 -0
- data/lib/mmtrix/agent/sql_sampler.rb +322 -0
- data/lib/mmtrix/agent/stats.rb +159 -0
- data/lib/mmtrix/agent/stats_engine/gc_profiler.rb +109 -0
- data/lib/mmtrix/agent/stats_engine/metric_stats.rb +237 -0
- data/lib/mmtrix/agent/stats_engine/samplers.rb +22 -0
- data/lib/mmtrix/agent/stats_engine/stats_hash.rb +168 -0
- data/lib/mmtrix/agent/stats_engine.rb +32 -0
- data/lib/mmtrix/agent/supported_versions.rb +259 -0
- data/lib/mmtrix/agent/synthetics_event_buffer.rb +42 -0
- data/lib/mmtrix/agent/synthetics_monitor.rb +50 -0
- data/lib/mmtrix/agent/system_info.rb +251 -0
- data/lib/mmtrix/agent/threading/agent_thread.rb +76 -0
- data/lib/mmtrix/agent/threading/backtrace_node.rb +135 -0
- data/lib/mmtrix/agent/threading/backtrace_service.rb +283 -0
- data/lib/mmtrix/agent/threading/thread_profile.rb +149 -0
- data/lib/mmtrix/agent/traced_method_stack.rb +99 -0
- data/lib/mmtrix/agent/transaction/attributes.rb +163 -0
- data/lib/mmtrix/agent/transaction/developer_mode_sample_buffer.rb +62 -0
- data/lib/mmtrix/agent/transaction/slowest_sample_buffer.rb +25 -0
- data/lib/mmtrix/agent/transaction/synthetics_sample_buffer.rb +25 -0
- data/lib/mmtrix/agent/transaction/trace.rb +150 -0
- data/lib/mmtrix/agent/transaction/trace_node.rb +190 -0
- data/lib/mmtrix/agent/transaction/transaction_sample_buffer.rb +105 -0
- data/lib/mmtrix/agent/transaction/xray_sample_buffer.rb +64 -0
- data/lib/mmtrix/agent/transaction.rb +940 -0
- data/lib/mmtrix/agent/transaction_event_aggregator.rb +265 -0
- data/lib/mmtrix/agent/transaction_metrics.rb +57 -0
- data/lib/mmtrix/agent/transaction_sample_builder.rb +141 -0
- data/lib/mmtrix/agent/transaction_sampler.rb +317 -0
- data/lib/mmtrix/agent/transaction_state.rb +153 -0
- data/lib/mmtrix/agent/transaction_timings.rb +57 -0
- data/lib/mmtrix/agent/utilization_data.rb +64 -0
- data/lib/mmtrix/agent/vm/jruby_vm.rb +40 -0
- data/lib/mmtrix/agent/vm/monotonic_gc_profiler.rb +45 -0
- data/lib/mmtrix/agent/vm/mri_vm.rb +87 -0
- data/lib/mmtrix/agent/vm/rubinius_vm.rb +132 -0
- data/lib/mmtrix/agent/vm/snapshot.rb +20 -0
- data/lib/mmtrix/agent/vm.rb +32 -0
- data/lib/mmtrix/agent/worker_loop.rb +98 -0
- data/lib/mmtrix/agent.rb +714 -0
- data/lib/mmtrix/build.rb +2 -0
- data/lib/mmtrix/cli/command.rb +91 -0
- data/lib/mmtrix/cli/commands/deployments.rb +134 -0
- data/lib/mmtrix/cli/commands/install.rb +84 -0
- data/lib/mmtrix/coerce.rb +70 -0
- data/lib/mmtrix/collection_helper.rb +79 -0
- data/lib/mmtrix/control/class_methods.rb +62 -0
- data/lib/mmtrix/control/frameworks/external.rb +20 -0
- data/lib/mmtrix/control/frameworks/merb.rb +29 -0
- data/lib/mmtrix/control/frameworks/rails.rb +139 -0
- data/lib/mmtrix/control/frameworks/rails3.rb +45 -0
- data/lib/mmtrix/control/frameworks/rails4.rb +23 -0
- data/lib/mmtrix/control/frameworks/ruby.rb +24 -0
- data/lib/mmtrix/control/frameworks/sinatra.rb +14 -0
- data/lib/mmtrix/control/frameworks.rb +14 -0
- data/lib/mmtrix/control/instance_methods.rb +161 -0
- data/lib/mmtrix/control/instrumentation.rb +71 -0
- data/lib/mmtrix/control/server_methods.rb +32 -0
- data/lib/mmtrix/control.rb +43 -0
- data/lib/mmtrix/delayed_job_injection.rb +10 -0
- data/lib/mmtrix/environment_report.rb +131 -0
- data/lib/mmtrix/helper.rb +55 -0
- data/lib/mmtrix/json_wrapper.rb +78 -0
- data/lib/mmtrix/language_support.rb +144 -0
- data/lib/mmtrix/latest_changes.rb +64 -0
- data/lib/mmtrix/local_environment.rb +207 -0
- data/lib/mmtrix/merbtasks.rb +10 -0
- data/lib/mmtrix/metric_data.rb +74 -0
- data/lib/mmtrix/metric_spec.rb +81 -0
- data/lib/mmtrix/metrics.rb +13 -0
- data/lib/mmtrix/noticed_error.rb +164 -0
- data/lib/mmtrix/okjson.rb +602 -0
- data/lib/mmtrix/rack/agent_hooks.rb +33 -0
- data/lib/mmtrix/rack/agent_middleware.rb +40 -0
- data/lib/mmtrix/rack/browser_monitoring.rb +150 -0
- data/lib/mmtrix/rack/developer_mode/segment_summary.rb +56 -0
- data/lib/mmtrix/rack/developer_mode.rb +321 -0
- data/lib/mmtrix/rack/error_collector.rb +27 -0
- data/lib/mmtrix/rack.rb +17 -0
- data/lib/mmtrix/recipes/capistrano3.rb +66 -0
- data/lib/mmtrix/recipes/capistrano_legacy.rb +98 -0
- data/lib/mmtrix/recipes.rb +24 -0
- data/lib/mmtrix/timer_lib.rb +31 -0
- data/lib/mmtrix/version.rb +70 -0
- data/lib/mmtrix_rpm.rb +54 -0
- data/lib/sequel/extensions/mmtrix_instrumentation.rb +79 -0
- data/lib/sequel/plugins/mmtrix_instrumentation.rb +65 -0
- data/lib/tasks/all.rb +8 -0
- data/lib/tasks/config.html.erb +28 -0
- data/lib/tasks/config.rake +134 -0
- data/lib/tasks/config.text.erb +7 -0
- data/lib/tasks/install.rake +11 -0
- data/lib/tasks/multiverse.rake +2 -0
- data/lib/tasks/multiverse.rb +50 -0
- data/lib/tasks/tests.rake +36 -0
- data/lib/tasks/versions.html.erb +27 -0
- data/lib/tasks/versions.rake +53 -0
- data/lib/tasks/versions.txt.erb +14 -0
- data/mmtrix.yml +47 -0
- data/mmtrix_rpm.gemspec +73 -0
- data/recipes/mmtrix.rb +10 -0
- data/test/agent_helper.rb +666 -0
- data/test/config/mmtrix.yml +46 -0
- data/test/config/test.cert.crt +18 -0
- data/test/config/test.cert.key +15 -0
- data/test/config/test_control.rb +54 -0
- data/test/environments/.gitignore +16 -0
- data/test/environments/lib/environments/runner.rb +113 -0
- data/test/environments/norails/Gemfile +21 -0
- data/test/environments/norails/Rakefile +9 -0
- data/test/environments/rails21/Gemfile +25 -0
- data/test/environments/rails21/Rakefile +16 -0
- data/test/environments/rails21/app/controllers/application.rb +20 -0
- data/test/environments/rails21/config/boot.rb +113 -0
- data/test/environments/rails21/config/database.yml +26 -0
- data/test/environments/rails21/config/environment.rb +26 -0
- data/test/environments/rails21/config/environments/development.rb +10 -0
- data/test/environments/rails21/config/environments/production.rb +8 -0
- data/test/environments/rails21/config/environments/test.rb +10 -0
- data/test/environments/rails21/config/routes.rb +5 -0
- data/test/environments/rails21/db/schema.rb +5 -0
- data/test/environments/rails22/Gemfile +25 -0
- data/test/environments/rails22/Rakefile +16 -0
- data/test/environments/rails22/app/controllers/application.rb +20 -0
- data/test/environments/rails22/config/boot.rb +113 -0
- data/test/environments/rails22/config/database.yml +26 -0
- data/test/environments/rails22/config/environment.rb +25 -0
- data/test/environments/rails22/config/environments/development.rb +10 -0
- data/test/environments/rails22/config/environments/production.rb +8 -0
- data/test/environments/rails22/config/environments/test.rb +10 -0
- data/test/environments/rails22/config/routes.rb +5 -0
- data/test/environments/rails22/db/schema.rb +5 -0
- data/test/environments/rails23/Gemfile +24 -0
- data/test/environments/rails23/Rakefile +16 -0
- data/test/environments/rails23/app/controllers/application.rb +20 -0
- data/test/environments/rails23/config/boot.rb +127 -0
- data/test/environments/rails23/config/database.yml +26 -0
- data/test/environments/rails23/config/environment.rb +16 -0
- data/test/environments/rails23/config/environments/production.rb +8 -0
- data/test/environments/rails23/config/environments/test.rb +10 -0
- data/test/environments/rails23/config/preinitializer.rb +25 -0
- data/test/environments/rails23/config/routes.rb +5 -0
- data/test/environments/rails23/db/schema.rb +5 -0
- data/test/environments/rails30/Gemfile +23 -0
- data/test/environments/rails30/Rakefile +11 -0
- data/test/environments/rails30/config/application.rb +17 -0
- data/test/environments/rails30/config/boot.rb +10 -0
- data/test/environments/rails30/config/database.yml +26 -0
- data/test/environments/rails30/config/environment.rb +6 -0
- data/test/environments/rails30/config/initializers/new_rails_defaults.rb +11 -0
- data/test/environments/rails30/db/schema.rb +5 -0
- data/test/environments/rails31/Gemfile +24 -0
- data/test/environments/rails31/Rakefile +11 -0
- data/test/environments/rails31/config/application.rb +18 -0
- data/test/environments/rails31/config/boot.rb +10 -0
- data/test/environments/rails31/config/database.yml +26 -0
- data/test/environments/rails31/config/environment.rb +6 -0
- data/test/environments/rails31/config/initializers/new_rails_defaults.rb +21 -0
- data/test/environments/rails31/db/schema.rb +5 -0
- data/test/environments/rails32/Gemfile +26 -0
- data/test/environments/rails32/Rakefile +11 -0
- data/test/environments/rails32/config/application.rb +19 -0
- data/test/environments/rails32/config/boot.rb +10 -0
- data/test/environments/rails32/config/database.yml +31 -0
- data/test/environments/rails32/config/environment.rb +6 -0
- data/test/environments/rails32/db/schema.rb +5 -0
- data/test/environments/rails40/Gemfile +43 -0
- data/test/environments/rails40/Rakefile +11 -0
- data/test/environments/rails40/config/application.rb +18 -0
- data/test/environments/rails40/config/boot.rb +10 -0
- data/test/environments/rails40/config/database.yml +26 -0
- data/test/environments/rails40/config/environment.rb +6 -0
- data/test/environments/rails40/db/schema.rb +5 -0
- data/test/environments/rails41/Gemfile +35 -0
- data/test/environments/rails41/Rakefile +11 -0
- data/test/environments/rails41/config/application.rb +18 -0
- data/test/environments/rails41/config/boot.rb +10 -0
- data/test/environments/rails41/config/database.yml +26 -0
- data/test/environments/rails41/config/environment.rb +6 -0
- data/test/environments/rails41/db/schema.rb +5 -0
- data/test/environments/rails42/Gemfile +39 -0
- data/test/environments/rails42/Rakefile +11 -0
- data/test/environments/rails42/config/application.rb +18 -0
- data/test/environments/rails42/config/boot.rb +10 -0
- data/test/environments/rails42/config/database.yml +26 -0
- data/test/environments/rails42/config/environment.rb +6 -0
- data/test/environments/rails42/db/schema.rb +5 -0
- data/test/fixtures/cross_agent_tests/README.md +56 -0
- data/test/fixtures/cross_agent_tests/attribute_configuration.json +384 -0
- data/test/fixtures/cross_agent_tests/aws.json +218 -0
- data/test/fixtures/cross_agent_tests/cat_map.json +597 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/README.md +6 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/cases.json +75 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-0.9.1.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-1.0.0.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-1.1.2-lxc-driver.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-1.1.2-native-driver-fs.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-1.1.2-native-driver-systemd.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/docker-1.3.txt +9 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/empty.txt +0 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/heroku.txt +1 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/invalid-characters.txt +9 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/invalid-length.txt +9 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/ubuntu-14.04-lxc-container.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/ubuntu-14.04-no-container.txt +10 -0
- data/test/fixtures/cross_agent_tests/docker_container_id/ubuntu-14.10-no-container.txt +10 -0
- data/test/fixtures/cross_agent_tests/labels.json +133 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/README.md +16 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/basic_where.colon_obfuscated.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/basic_where.explain.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/basic_where.obfuscated.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/basic_where.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/current_date.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/current_date.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/current_date.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/current_date.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/date.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/date.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/date.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/date.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_newline.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_newline.explain.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_newline.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_newline.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_quote.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_quote.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_quote.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/embedded_quote.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/floating_point.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/floating_point.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/floating_point.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/floating_point.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/function_with_strings.colon_obfuscated.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/function_with_strings.explain.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/function_with_strings.obfuscated.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/function_with_strings.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/quote_in_table_name.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/quote_in_table_name.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/quote_in_table_name.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/quote_in_table_name.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/subplan.colon_obfuscated.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/subplan.explain.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/subplan.obfuscated.txt +5 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/subplan.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_integer.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_integer.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_integer.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_integer.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_regex_chars.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_regex_chars.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_regex_chars.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_regex_chars.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_substring.colon_obfuscated.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_substring.explain.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_substring.obfuscated.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/where_with_substring.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case1.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case1.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case1.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case1.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case2.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case2.explain.txt +3 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case2.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case2.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case3.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case3.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case3.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case3.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case4.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case4.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case4.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case4.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case5.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case5.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case5.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case5.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case6.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case6.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case6.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case6.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case7.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case7.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case7.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case7.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case8.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case8.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case8.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case8.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case9.colon_obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case9.explain.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case9.obfuscated.txt +2 -0
- data/test/fixtures/cross_agent_tests/postgres_explain_obfuscation/with_escape_case9.query.txt +1 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/1pack_1core_1logical.txt +3 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/1pack_1core_2logical.txt +14 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/1pack_2core_2logical.txt +14 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/1pack_4core_4logical.txt +28 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/2pack_12core_24logical.txt +575 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/2pack_20core_40logical.txt +999 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/2pack_2core_2logical.txt +51 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/2pack_2core_4logical.txt +28 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/2pack_4core_4logical.txt +28 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/4pack_4core_4logical.txt +103 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/8pack_8core_8logical.txt +199 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/README.md +24 -0
- data/test/fixtures/cross_agent_tests/proc_cpuinfo/Xpack_Xcore_2logical.txt +43 -0
- data/test/fixtures/cross_agent_tests/proc_meminfo/README.md +7 -0
- data/test/fixtures/cross_agent_tests/proc_meminfo/meminfo_4096MB.txt +47 -0
- data/test/fixtures/cross_agent_tests/rules.json +165 -0
- data/test/fixtures/cross_agent_tests/rum_client_config.json +62 -0
- data/test/fixtures/cross_agent_tests/rum_footer_insertion_location/close-body-in-comment.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_footer_insertion_location/dynamic-iframe.html +19 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/basic.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/body_with_attributes.html +3 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/charset_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/charset_tag_after_x_ua_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/charset_tag_before_x_ua_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/charset_tag_with_spaces.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/comments1.html +24 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/comments2.html +24 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/content_type_charset_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/content_type_charset_tag_after_x_ua_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/content_type_charset_tag_before_x_ua_tag.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/empty_head +4 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/gt_in_quotes1.html +27 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/gt_in_quotes2.html +24 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/gt_in_quotes_mismatch.html +24 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/gt_in_single_quotes1.html +25 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/gt_in_single_quotes_mismatch.html +25 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/head_with_attributes.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/incomplete_non_meta_tags.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/no_end_header.html +6 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/no_header.html +7 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/no_html_and_no_header.html +3 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/no_start_header.html +9 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/script1.html +19 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/script2.html +17 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_multiline.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_multiple_tags.html +12 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_spaces_around_equals.html +10 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_with_others.html +11 -0
- data/test/fixtures/cross_agent_tests/rum_loader_insertion_location/x_ua_meta_tag_with_spaces.html +10 -0
- data/test/fixtures/cross_agent_tests/sql_obfuscation/README.md +30 -0
- data/test/fixtures/cross_agent_tests/sql_obfuscation/sql_obfuscation.json +365 -0
- data/test/fixtures/cross_agent_tests/sql_parsing.json +55 -0
- data/test/fixtures/cross_agent_tests/synthetics/README.md +65 -0
- data/test/fixtures/cross_agent_tests/synthetics/synthetics.json +317 -0
- data/test/fixtures/cross_agent_tests/transaction_segment_terms.json +101 -0
- data/test/fixtures/cross_agent_tests/url_clean.json +15 -0
- data/test/fixtures/cross_agent_tests/url_domain_extraction.json +35 -0
- data/test/helpers/exceptions.rb +16 -0
- data/test/helpers/file_searching.rb +28 -0
- data/test/helpers/mongo_metric_builder.rb +28 -0
- data/test/helpers/runtime_detection.rb +17 -0
- data/test/intentional_fail.rb +13 -0
- data/test/mmtrix/FAKECHANGELOG +21 -0
- data/test/mmtrix/agent/agent/connect_test.rb +308 -0
- data/test/mmtrix/agent/agent/start_test.rb +191 -0
- data/test/mmtrix/agent/agent/start_worker_thread_test.rb +74 -0
- data/test/mmtrix/agent/agent_logger_test.rb +392 -0
- data/test/mmtrix/agent/agent_test.rb +631 -0
- data/test/mmtrix/agent/agent_test_controller.rb +84 -0
- data/test/mmtrix/agent/apdex_from_server_test.rb +13 -0
- data/test/mmtrix/agent/attribute_filter_test.rb +218 -0
- data/test/mmtrix/agent/attribute_processing_test.rb +165 -0
- data/test/mmtrix/agent/audit_logger_test.rb +213 -0
- data/test/mmtrix/agent/autostart_test.rb +79 -0
- data/test/mmtrix/agent/aws_info_test.rb +61 -0
- data/test/mmtrix/agent/busy_calculator_test.rb +98 -0
- data/test/mmtrix/agent/commands/agent_command_router_test.rb +256 -0
- data/test/mmtrix/agent/commands/agent_command_test.rb +37 -0
- data/test/mmtrix/agent/commands/thread_profiler_session_test.rb +215 -0
- data/test/mmtrix/agent/commands/xray_session_collection_test.rb +332 -0
- data/test/mmtrix/agent/commands/xray_session_test.rb +42 -0
- data/test/mmtrix/agent/configuration/default_source_test.rb +226 -0
- data/test/mmtrix/agent/configuration/dotted_hash_test.rb +53 -0
- data/test/mmtrix/agent/configuration/environment_source_test.rb +201 -0
- data/test/mmtrix/agent/configuration/high_security_source_test.rb +83 -0
- data/test/mmtrix/agent/configuration/manager_test.rb +460 -0
- data/test/mmtrix/agent/configuration/manual_source_test.rb +18 -0
- data/test/mmtrix/agent/configuration/orphan_configuration_test.rb +89 -0
- data/test/mmtrix/agent/configuration/server_source_test.rb +202 -0
- data/test/mmtrix/agent/configuration/yaml_source_test.rb +117 -0
- data/test/mmtrix/agent/cross_app_monitor_test.rb +248 -0
- data/test/mmtrix/agent/cross_app_tracing_test.rb +71 -0
- data/test/mmtrix/agent/custom_event_aggregator_test.rb +88 -0
- data/test/mmtrix/agent/database/postgres_explain_obfuscator_test.rb +34 -0
- data/test/mmtrix/agent/database/sql_obfuscation_test.rb +59 -0
- data/test/mmtrix/agent/database_test.rb +401 -0
- data/test/mmtrix/agent/datastores/metric_helper_test.rb +132 -0
- data/test/mmtrix/agent/datastores/mongo/metric_translator_test.rb +320 -0
- data/test/mmtrix/agent/datastores/mongo/obfuscator_test.rb +91 -0
- data/test/mmtrix/agent/datastores/mongo/statement_formatter_test.rb +72 -0
- data/test/mmtrix/agent/datastores_test.rb +195 -0
- data/test/mmtrix/agent/deprecator_test.rb +52 -0
- data/test/mmtrix/agent/encoding_normalizer_test.rb +66 -0
- data/test/mmtrix/agent/error_collector_test.rb +618 -0
- data/test/mmtrix/agent/event_buffer_test_cases.rb +152 -0
- data/test/mmtrix/agent/event_listener_test.rb +70 -0
- data/test/mmtrix/agent/event_loop_test.rb +202 -0
- data/test/mmtrix/agent/harvester_test.rb +79 -0
- data/test/mmtrix/agent/hash_extensions_test.rb +34 -0
- data/test/mmtrix/agent/hostname_test.rb +93 -0
- data/test/mmtrix/agent/http_clients/uri_util_test.rb +64 -0
- data/test/mmtrix/agent/inbound_request_monitor_test.rb +49 -0
- data/test/mmtrix/agent/instrumentation/action_controller_subscriber_test.rb +299 -0
- data/test/mmtrix/agent/instrumentation/action_view_subscriber_test.rb +239 -0
- data/test/mmtrix/agent/instrumentation/active_job_test.rb +20 -0
- data/test/mmtrix/agent/instrumentation/active_record_helper_test.rb +77 -0
- data/test/mmtrix/agent/instrumentation/active_record_subscriber_test.rb +132 -0
- data/test/mmtrix/agent/instrumentation/controller_instrumentation_test.rb +328 -0
- data/test/mmtrix/agent/instrumentation/instrumentation_test.rb +14 -0
- data/test/mmtrix/agent/instrumentation/metric_frame_test.rb +22 -0
- data/test/mmtrix/agent/instrumentation/middleware_proxy_test.rb +257 -0
- data/test/mmtrix/agent/instrumentation/middleware_tracing_test.rb +49 -0
- data/test/mmtrix/agent/instrumentation/net_instrumentation_test.rb +35 -0
- data/test/mmtrix/agent/instrumentation/queue_time_test.rb +103 -0
- data/test/mmtrix/agent/instrumentation/rack_test.rb +47 -0
- data/test/mmtrix/agent/instrumentation/sequel_helper_test.rb +36 -0
- data/test/mmtrix/agent/instrumentation/sinatra/transaction_namer_test.rb +55 -0
- data/test/mmtrix/agent/instrumentation/sinatra_test.rb +80 -0
- data/test/mmtrix/agent/instrumentation/task_instrumentation_test.rb +196 -0
- data/test/mmtrix/agent/javascript_instrumentor_test.rb +340 -0
- data/test/mmtrix/agent/memory_logger_test.rb +85 -0
- data/test/mmtrix/agent/method_interrobang_test.rb +31 -0
- data/test/mmtrix/agent/method_tracer/class_methods/add_method_tracer_test.rb +122 -0
- data/test/mmtrix/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +224 -0
- data/test/mmtrix/agent/method_tracer_test.rb +474 -0
- data/test/mmtrix/agent/method_visibility_test.rb +90 -0
- data/test/mmtrix/agent/mmtrix_service_test.rb +1056 -0
- data/test/mmtrix/agent/mock_scope_listener.rb +27 -0
- data/test/mmtrix/agent/obfuscator_test.rb +77 -0
- data/test/mmtrix/agent/parameter_filtering_test.rb +39 -0
- data/test/mmtrix/agent/pipe_channel_manager_test.rb +278 -0
- data/test/mmtrix/agent/pipe_service_test.rb +145 -0
- data/test/mmtrix/agent/rpm_agent_test.rb +94 -0
- data/test/mmtrix/agent/rules_engine_test.rb +136 -0
- data/test/mmtrix/agent/sampled_buffer_test.rb +106 -0
- data/test/mmtrix/agent/sampler_collection_test.rb +90 -0
- data/test/mmtrix/agent/sampler_test.rb +66 -0
- data/test/mmtrix/agent/samplers/cpu_sampler_test.rb +51 -0
- data/test/mmtrix/agent/samplers/vm_sampler_test.rb +349 -0
- data/test/mmtrix/agent/sized_buffer_test.rb +29 -0
- data/test/mmtrix/agent/sql_sampler_test.rb +403 -0
- data/test/mmtrix/agent/stats_engine/gc_profiler_test.rb +188 -0
- data/test/mmtrix/agent/stats_engine/metric_stats_test.rb +347 -0
- data/test/mmtrix/agent/stats_engine/samplers_test.rb +98 -0
- data/test/mmtrix/agent/stats_engine/stats_hash_test.rb +194 -0
- data/test/mmtrix/agent/stats_engine_test.rb +32 -0
- data/test/mmtrix/agent/stats_test.rb +189 -0
- data/test/mmtrix/agent/synthetics_event_buffer_test.rb +54 -0
- data/test/mmtrix/agent/synthetics_monitor_test.rb +93 -0
- data/test/mmtrix/agent/system_info_test.rb +119 -0
- data/test/mmtrix/agent/threading/agent_thread_test.rb +149 -0
- data/test/mmtrix/agent/threading/backtrace_node_test.rb +184 -0
- data/test/mmtrix/agent/threading/backtrace_service_test.rb +595 -0
- data/test/mmtrix/agent/threading/fake_thread.rb +43 -0
- data/test/mmtrix/agent/threading/thread_profile_test.rb +272 -0
- data/test/mmtrix/agent/threading/threaded_test_case.rb +18 -0
- data/test/mmtrix/agent/traced_method_stack_test.rb +187 -0
- data/test/mmtrix/agent/transaction/attributes_test.rb +276 -0
- data/test/mmtrix/agent/transaction/developer_mode_sample_buffer_test.rb +75 -0
- data/test/mmtrix/agent/transaction/slowest_sample_buffer_test.rb +67 -0
- data/test/mmtrix/agent/transaction/synthetics_sample_buffer_test.rb +38 -0
- data/test/mmtrix/agent/transaction/trace_node_test.rb +361 -0
- data/test/mmtrix/agent/transaction/trace_test.rb +394 -0
- data/test/mmtrix/agent/transaction/xray_sample_buffer_test.rb +71 -0
- data/test/mmtrix/agent/transaction_event_aggregator_test.rb +426 -0
- data/test/mmtrix/agent/transaction_interrobang_test.rb +33 -0
- data/test/mmtrix/agent/transaction_metrics_test.rb +113 -0
- data/test/mmtrix/agent/transaction_sample_builder_test.rb +215 -0
- data/test/mmtrix/agent/transaction_sampler_test.rb +849 -0
- data/test/mmtrix/agent/transaction_state_test.rb +122 -0
- data/test/mmtrix/agent/transaction_test.rb +1435 -0
- data/test/mmtrix/agent/transaction_timings_test.rb +91 -0
- data/test/mmtrix/agent/utilization_data_test.rb +147 -0
- data/test/mmtrix/agent/vm/monotonic_gc_profiler_test.rb +42 -0
- data/test/mmtrix/agent/vm/mri_vm_test.rb +42 -0
- data/test/mmtrix/agent/vm/rubinius_vm_test.rb +69 -0
- data/test/mmtrix/agent/vm/snapshot_test.rb +13 -0
- data/test/mmtrix/agent/vm_test.rb +48 -0
- data/test/mmtrix/agent/worker_loop_test.rb +98 -0
- data/test/mmtrix/agent_test.rb +471 -0
- data/test/mmtrix/cli/commands/deployments_test.rb +131 -0
- data/test/mmtrix/cli/commands/install_test.rb +27 -0
- data/test/mmtrix/coerce_test.rb +95 -0
- data/test/mmtrix/collection_helper_test.rb +151 -0
- data/test/mmtrix/control/class_methods_test.rb +48 -0
- data/test/mmtrix/control/frameworks/rails_test.rb +29 -0
- data/test/mmtrix/control/instance_methods_test.rb +50 -0
- data/test/mmtrix/control/instrumentation_test.rb +41 -0
- data/test/mmtrix/control_test.rb +169 -0
- data/test/mmtrix/data_container_tests.rb +76 -0
- data/test/mmtrix/dependency_detection_test.rb +155 -0
- data/test/mmtrix/dispatcher_test.rb +59 -0
- data/test/mmtrix/environment_report_test.rb +107 -0
- data/test/mmtrix/evil_server.rb +55 -0
- data/test/mmtrix/fake_collector.rb +385 -0
- data/test/mmtrix/fake_external_server.rb +65 -0
- data/test/mmtrix/fake_instance_metadata_service.rb +45 -0
- data/test/mmtrix/fake_rpm_site.rb +35 -0
- data/test/mmtrix/fake_server.rb +104 -0
- data/test/mmtrix/filtering_test_app.rb +19 -0
- data/test/mmtrix/framework_test.rb +58 -0
- data/test/mmtrix/http_client_test_cases.rb +621 -0
- data/test/mmtrix/json_wrapper_test.rb +32 -0
- data/test/mmtrix/language_support_test.rb +104 -0
- data/test/mmtrix/latest_changes_test.rb +45 -0
- data/test/mmtrix/license_test.rb +128 -0
- data/test/mmtrix/load_test.rb +15 -0
- data/test/mmtrix/local_environment_test.rb +103 -0
- data/test/mmtrix/marshalling_test_cases.rb +140 -0
- data/test/mmtrix/metric_data_test.rb +191 -0
- data/test/mmtrix/metric_parser/metric_parser_test.rb +17 -0
- data/test/mmtrix/metric_spec_test.rb +145 -0
- data/test/mmtrix/multiverse_helpers.rb +283 -0
- data/test/mmtrix/noticed_error_test.rb +197 -0
- data/test/mmtrix/rack/agent_hooks_test.rb +44 -0
- data/test/mmtrix/rack/agent_middleware_test.rb +32 -0
- data/test/mmtrix/rack/browser_monitoring_test.rb +197 -0
- data/test/mmtrix/rack/deferred_instrumentation_test.rb +33 -0
- data/test/mmtrix/rack/developer_mode/segment_summary_test.rb +96 -0
- data/test/mmtrix/rack/developer_mode_helper_test.rb +136 -0
- data/test/mmtrix/rack/developer_mode_test.rb +93 -0
- data/test/mmtrix/rack/error_collector_test.rb +77 -0
- data/test/mmtrix/transaction_ignoring_test_cases.rb +102 -0
- data/test/mmtrix/version_number_test.rb +101 -0
- data/test/multiverse/.gitignore +13 -0
- data/test/multiverse/README.md +85 -0
- data/test/multiverse/lib/multiverse/color.rb +23 -0
- data/test/multiverse/lib/multiverse/envfile.rb +66 -0
- data/test/multiverse/lib/multiverse/environment.rb +19 -0
- data/test/multiverse/lib/multiverse/output_collector.rb +82 -0
- data/test/multiverse/lib/multiverse/runner.rb +117 -0
- data/test/multiverse/lib/multiverse/suite.rb +528 -0
- data/test/multiverse/script/runner +5 -0
- data/test/multiverse/suites/active_record/.gitignore +1 -0
- data/test/multiverse/suites/active_record/Envfile +73 -0
- data/test/multiverse/suites/active_record/Rakefile +9 -0
- data/test/multiverse/suites/active_record/active_record_test.rb +568 -0
- data/test/multiverse/suites/active_record/app/models/models.rb +34 -0
- data/test/multiverse/suites/active_record/ar_method_aliasing.rb +43 -0
- data/test/multiverse/suites/active_record/before_suite.rb +23 -0
- data/test/multiverse/suites/active_record/config/database.rb +80 -0
- data/test/multiverse/suites/active_record/config/database.yml +19 -0
- data/test/multiverse/suites/active_record/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/active_record/db/migrate/20141105131800_create_users_and_aliases.rb +21 -0
- data/test/multiverse/suites/active_record/db/migrate/20141106082200_create_orders_and_shipments.rb +25 -0
- data/test/multiverse/suites/active_record/db/migrate/20150413011200_add_timestamps_to_orders.rb +16 -0
- data/test/multiverse/suites/active_record/db/migrate/20150414084400_create_groups.rb +21 -0
- data/test/multiverse/suites/activemerchant/Envfile +36 -0
- data/test/multiverse/suites/activemerchant/activemerchant_test.rb +62 -0
- data/test/multiverse/suites/agent_only/Envfile +4 -0
- data/test/multiverse/suites/agent_only/agent_attributes_test.rb +168 -0
- data/test/multiverse/suites/agent_only/agent_run_id_handling_test.rb +39 -0
- data/test/multiverse/suites/agent_only/audit_log_test.rb +58 -0
- data/test/multiverse/suites/agent_only/collector_exception_handling_test.rb +87 -0
- data/test/multiverse/suites/agent_only/config/mmtrix.yml +27 -0
- data/test/multiverse/suites/agent_only/cross_application_tracing_test.rb +94 -0
- data/test/multiverse/suites/agent_only/custom_analytics_events_test.rb +67 -0
- data/test/multiverse/suites/agent_only/custom_queue_time_test.rb +60 -0
- data/test/multiverse/suites/agent_only/encoding_handling_test.rb +130 -0
- data/test/multiverse/suites/agent_only/exclusive_time_test.rb +176 -0
- data/test/multiverse/suites/agent_only/harvest_timestamps_test.rb +83 -0
- data/test/multiverse/suites/agent_only/http_response_code_test.rb +38 -0
- data/test/multiverse/suites/agent_only/keepalive_test.rb +24 -0
- data/test/multiverse/suites/agent_only/key_transactions_test.rb +118 -0
- data/test/multiverse/suites/agent_only/labels_test.rb +83 -0
- data/test/multiverse/suites/agent_only/logging_test.rb +162 -0
- data/test/multiverse/suites/agent_only/marshaling_test.rb +88 -0
- data/test/multiverse/suites/agent_only/pipe_manager_test.rb +41 -0
- data/test/multiverse/suites/agent_only/rename_rule_test.rb +91 -0
- data/test/multiverse/suites/agent_only/rum_instrumentation_test.rb +97 -0
- data/test/multiverse/suites/agent_only/script/env_change.rb +10 -0
- data/test/multiverse/suites/agent_only/script/loading.rb +20 -0
- data/test/multiverse/suites/agent_only/script/public_api_when_disabled.rb +68 -0
- data/test/multiverse/suites/agent_only/script/symbol_env.rb +10 -0
- data/test/multiverse/suites/agent_only/service_timeout_test.rb +39 -0
- data/test/multiverse/suites/agent_only/set_transaction_name_test.rb +118 -0
- data/test/multiverse/suites/agent_only/ssl_test.rb +21 -0
- data/test/multiverse/suites/agent_only/start_up_test.rb +74 -0
- data/test/multiverse/suites/agent_only/synthetics_test.rb +131 -0
- data/test/multiverse/suites/agent_only/testing_app.rb +58 -0
- data/test/multiverse/suites/agent_only/thread_profiling_test.rb +160 -0
- data/test/multiverse/suites/agent_only/transaction_ignoring_test.rb +42 -0
- data/test/multiverse/suites/agent_only/utilization_data_collection_test.rb +110 -0
- data/test/multiverse/suites/agent_only/xray_sessions_test.rb +199 -0
- data/test/multiverse/suites/bare/Envfile +3 -0
- data/test/multiverse/suites/bare/standalone_instrumentation_test.rb +43 -0
- data/test/multiverse/suites/capistrano/Capfile +26 -0
- data/test/multiverse/suites/capistrano/Envfile +18 -0
- data/test/multiverse/suites/capistrano/config/deploy/production.rb +9 -0
- data/test/multiverse/suites/capistrano/config/deploy.rb +14 -0
- data/test/multiverse/suites/capistrano/config/mmtrix.yml +21 -0
- data/test/multiverse/suites/capistrano/deployment_test.rb +54 -0
- data/test/multiverse/suites/capistrano2/Capfile +4 -0
- data/test/multiverse/suites/capistrano2/Envfile +8 -0
- data/test/multiverse/suites/capistrano2/config/deploy.rb +19 -0
- data/test/multiverse/suites/capistrano2/config/mmtrix.yml +21 -0
- data/test/multiverse/suites/capistrano2/deployment_test.rb +37 -0
- data/test/multiverse/suites/config_file_loading/Envfile +13 -0
- data/test/multiverse/suites/config_file_loading/config_file_loading_test.rb +213 -0
- data/test/multiverse/suites/curb/Envfile +31 -0
- data/test/multiverse/suites/curb/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/curb/curb_test.rb +213 -0
- data/test/multiverse/suites/datamapper/Envfile +30 -0
- data/test/multiverse/suites/datamapper/config/mmtrix.yml +20 -0
- data/test/multiverse/suites/datamapper/datamapper_test.rb +335 -0
- data/test/multiverse/suites/deferred_instrumentation/Envfile +15 -0
- data/test/multiverse/suites/deferred_instrumentation/config/mmtrix.yml +20 -0
- data/test/multiverse/suites/deferred_instrumentation/sinatra_test.rb +107 -0
- data/test/multiverse/suites/delayed_job/Envfile +102 -0
- data/test/multiverse/suites/delayed_job/before_suite.rb +33 -0
- data/test/multiverse/suites/delayed_job/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/delayed_job/delayed_job_sampler_test.rb +128 -0
- data/test/multiverse/suites/delayed_job/unsupported_backend_test.rb +21 -0
- data/test/multiverse/suites/excon/Envfile +21 -0
- data/test/multiverse/suites/excon/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/excon/excon_test.rb +81 -0
- data/test/multiverse/suites/grape/Envfile +13 -0
- data/test/multiverse/suites/grape/config/mmtrix.yml +19 -0
- data/test/multiverse/suites/grape/grape_test.rb +202 -0
- data/test/multiverse/suites/grape/grape_test_api.rb +64 -0
- data/test/multiverse/suites/grape/grape_versioning_test.rb +64 -0
- data/test/multiverse/suites/grape/grape_versioning_test_api.rb +72 -0
- data/test/multiverse/suites/grape/unsupported_version_test.rb +28 -0
- data/test/multiverse/suites/high_security/Envfile +3 -0
- data/test/multiverse/suites/high_security/config/mmtrix.yml +70 -0
- data/test/multiverse/suites/high_security/high_security_test.rb +214 -0
- data/test/multiverse/suites/httpclient/Envfile +13 -0
- data/test/multiverse/suites/httpclient/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/httpclient/httpclient_test.rb +75 -0
- data/test/multiverse/suites/json/Envfile +25 -0
- data/test/multiverse/suites/json/config/mmtrix.yml +22 -0
- data/test/multiverse/suites/json/json_test.rb +16 -0
- data/test/multiverse/suites/marshalling/Envfile +12 -0
- data/test/multiverse/suites/marshalling/config/mmtrix.yml +20 -0
- data/test/multiverse/suites/marshalling/marshalling_test.rb +16 -0
- data/test/multiverse/suites/memcached/Envfile +52 -0
- data/test/multiverse/suites/memcached/dalli_test.rb +89 -0
- data/test/multiverse/suites/memcached/memcache_client_test.rb +25 -0
- data/test/multiverse/suites/memcached/memcache_test_cases.rb +302 -0
- data/test/multiverse/suites/memcached/memcached_test.rb +159 -0
- data/test/multiverse/suites/mongo/Envfile +69 -0
- data/test/multiverse/suites/mongo/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/mongo/helpers/mongo_operation_tests.rb +489 -0
- data/test/multiverse/suites/mongo/helpers/mongo_replica_set.rb +97 -0
- data/test/multiverse/suites/mongo/helpers/mongo_replica_set_test.rb +82 -0
- data/test/multiverse/suites/mongo/helpers/mongo_server.rb +241 -0
- data/test/multiverse/suites/mongo/helpers/mongo_server_test.rb +176 -0
- data/test/multiverse/suites/mongo/mongo_connection_test.rb +39 -0
- data/test/multiverse/suites/mongo/mongo_instrumentation_test.rb +39 -0
- data/test/multiverse/suites/mongo/mongo_unsupported_version_test.rb +72 -0
- data/test/multiverse/suites/net_http/Envfile +4 -0
- data/test/multiverse/suites/net_http/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/net_http/net_http_test.rb +111 -0
- data/test/multiverse/suites/padrino/Envfile +14 -0
- data/test/multiverse/suites/padrino/config/mmtrix.yml +20 -0
- data/test/multiverse/suites/padrino/padrino_test.rb +52 -0
- data/test/multiverse/suites/rack/Envfile +35 -0
- data/test/multiverse/suites/rack/builder_map_test.rb +128 -0
- data/test/multiverse/suites/rack/example_app.rb +100 -0
- data/test/multiverse/suites/rack/http_response_code_test.rb +50 -0
- data/test/multiverse/suites/rack/nested_non_rack_app_test.rb +66 -0
- data/test/multiverse/suites/rack/rack_auto_instrumentation_test.rb +144 -0
- data/test/multiverse/suites/rack/rack_cascade_test.rb +45 -0
- data/test/multiverse/suites/rack/rack_env_mutation_test.rb +53 -0
- data/test/multiverse/suites/rack/rack_parameter_filtering_test.rb +49 -0
- data/test/multiverse/suites/rack/rack_unsupported_version_test.rb +43 -0
- data/test/multiverse/suites/rack/url_map_test.rb +117 -0
- data/test/multiverse/suites/rails/Envfile +61 -0
- data/test/multiverse/suites/rails/action_controller_live_rum_test.rb +39 -0
- data/test/multiverse/suites/rails/activejob_test.rb +152 -0
- data/test/multiverse/suites/rails/app/views/foos/_foo.html.haml +1 -0
- data/test/multiverse/suites/rails/app/views/views/_a_partial.html.erb +2 -0
- data/test/multiverse/suites/rails/app/views/views/_mid_partial.html.erb +1 -0
- data/test/multiverse/suites/rails/app/views/views/_top_partial.html.erb +3 -0
- data/test/multiverse/suites/rails/app/views/views/deep_partial.html.erb +3 -0
- data/test/multiverse/suites/rails/app/views/views/haml_view.html.haml +6 -0
- data/test/multiverse/suites/rails/app/views/views/index.html.erb +4 -0
- data/test/multiverse/suites/rails/app.rb +44 -0
- data/test/multiverse/suites/rails/bad_instrumentation_test.rb +29 -0
- data/test/multiverse/suites/rails/config/mmtrix.yml +30 -0
- data/test/multiverse/suites/rails/dummy.txt +1 -0
- data/test/multiverse/suites/rails/error_tracing_test.rb +322 -0
- data/test/multiverse/suites/rails/gc_instrumentation_test.rb +93 -0
- data/test/multiverse/suites/rails/ignore_test.rb +79 -0
- data/test/multiverse/suites/rails/middleware_instrumentation_test.rb +41 -0
- data/test/multiverse/suites/rails/middlewares.rb +19 -0
- data/test/multiverse/suites/rails/parameter_capture_test.rb +299 -0
- data/test/multiverse/suites/rails/queue_time_test.rb +89 -0
- data/test/multiverse/suites/rails/rails2_app/app/controllers/application.rb +7 -0
- data/test/multiverse/suites/rails/rails2_app/config/boot.rb +127 -0
- data/test/multiverse/suites/rails/rails2_app/config/database.yml +18 -0
- data/test/multiverse/suites/rails/rails2_app/config/environment.rb +16 -0
- data/test/multiverse/suites/rails/rails2_app/config/environments/development.rb +10 -0
- data/test/multiverse/suites/rails/rails2_app/config/initializers/load_mmtrix_rpm.rb +9 -0
- data/test/multiverse/suites/rails/rails2_app/config/preinitializer.rb +25 -0
- data/test/multiverse/suites/rails/rails2_app/config/routes.rb +19 -0
- data/test/multiverse/suites/rails/rails2_app/db/schema.rb +5 -0
- data/test/multiverse/suites/rails/rails3_app/app_rails3_plus.rb +92 -0
- data/test/multiverse/suites/rails/request_statistics_test.rb +192 -0
- data/test/multiverse/suites/rails/transaction_ignoring_test.rb +41 -0
- data/test/multiverse/suites/rails/view_instrumentation_test.rb +254 -0
- data/test/multiverse/suites/resque/Envfile +11 -0
- data/test/multiverse/suites/resque/Rakefile +3 -0
- data/test/multiverse/suites/resque/config/mmtrix.yml +19 -0
- data/test/multiverse/suites/resque/instrumentation_test.rb +155 -0
- data/test/multiverse/suites/resque/resque_marshalling_test.rb +53 -0
- data/test/multiverse/suites/sequel/Envfile +34 -0
- data/test/multiverse/suites/sequel/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/sequel/database.rb +57 -0
- data/test/multiverse/suites/sequel/sequel_extension_test.rb +142 -0
- data/test/multiverse/suites/sequel/sequel_helpers.rb +62 -0
- data/test/multiverse/suites/sequel/sequel_plugin_test.rb +230 -0
- data/test/multiverse/suites/sequel/sequel_safety_test.rb +30 -0
- data/test/multiverse/suites/sidekiq/Envfile +31 -0
- data/test/multiverse/suites/sidekiq/after_suite.rb +16 -0
- data/test/multiverse/suites/sidekiq/config/mmtrix.yml +20 -0
- data/test/multiverse/suites/sidekiq/log/.gitkeep +0 -0
- data/test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb +219 -0
- data/test/multiverse/suites/sidekiq/sidekiq_server.rb +31 -0
- data/test/multiverse/suites/sidekiq/test_worker.rb +71 -0
- data/test/multiverse/suites/sinatra/Envfile +17 -0
- data/test/multiverse/suites/sinatra/config/mmtrix.yml +21 -0
- data/test/multiverse/suites/sinatra/ignoring_test.rb +208 -0
- data/test/multiverse/suites/sinatra/nested_middleware_test.rb +39 -0
- data/test/multiverse/suites/sinatra/sinatra_classic_test.rb +99 -0
- data/test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb +45 -0
- data/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb +96 -0
- data/test/multiverse/suites/sinatra/sinatra_modular_test.rb +89 -0
- data/test/multiverse/suites/sinatra/sinatra_parameter_capture_test.rb +65 -0
- data/test/multiverse/suites/sinatra/sinatra_routes_test.rb +49 -0
- data/test/multiverse/suites/sinatra/sinatra_test_cases.rb +137 -0
- data/test/multiverse/suites/typhoeus/Envfile +57 -0
- data/test/multiverse/suites/typhoeus/config/mmtrix.yml +18 -0
- data/test/multiverse/suites/typhoeus/typhoeus_test.rb +144 -0
- data/test/multiverse/suites/yajl/Envfile +13 -0
- data/test/multiverse/suites/yajl/config/mmtrix.yml +21 -0
- data/test/multiverse/suites/yajl/yajl_test.rb +18 -0
- data/test/multiverse/test/multiverse_test.rb +59 -0
- data/test/multiverse/test/suite_examples/one/a/Envfile +3 -0
- data/test/multiverse/test/suite_examples/one/a/a_test.rb +14 -0
- data/test/multiverse/test/suite_examples/one/a/config/mmtrix.yml +22 -0
- data/test/multiverse/test/suite_examples/one/b/Envfile +3 -0
- data/test/multiverse/test/suite_examples/one/b/b_test.rb +14 -0
- data/test/multiverse/test/suite_examples/one/b/config/mmtrix.yml +22 -0
- data/test/multiverse/test/suite_examples/three/a/Envfile +2 -0
- data/test/multiverse/test/suite_examples/three/a/fail_test.rb +10 -0
- data/test/multiverse/test/suite_examples/three/b/Envfile +2 -0
- data/test/multiverse/test/suite_examples/three/b/win_test.rb +10 -0
- data/test/multiverse/test/suite_examples/two/a/Envfile +1 -0
- data/test/multiverse/test/suite_examples/two/a/fail_test.rb +10 -0
- data/test/performance/README.md +182 -0
- data/test/performance/lib/performance/baseline.rb +36 -0
- data/test/performance/lib/performance/baseline_compare_reporter.rb +103 -0
- data/test/performance/lib/performance/baseline_save_reporter.rb +24 -0
- data/test/performance/lib/performance/console_reporter.rb +66 -0
- data/test/performance/lib/performance/formatting_helpers.rb +22 -0
- data/test/performance/lib/performance/hako_client.rb +31 -0
- data/test/performance/lib/performance/hako_reporter.rb +26 -0
- data/test/performance/lib/performance/instrumentation/cpu_usage.rb +26 -0
- data/test/performance/lib/performance/instrumentation/gc_stats.rb +58 -0
- data/test/performance/lib/performance/instrumentation/perf_tools.rb +30 -0
- data/test/performance/lib/performance/instrumentation/stackprof.rb +46 -0
- data/test/performance/lib/performance/instrumentor.rb +96 -0
- data/test/performance/lib/performance/json_reporter.rb +15 -0
- data/test/performance/lib/performance/platform.rb +37 -0
- data/test/performance/lib/performance/reporting.rb +36 -0
- data/test/performance/lib/performance/result.rb +104 -0
- data/test/performance/lib/performance/runner.rb +221 -0
- data/test/performance/lib/performance/table.rb +105 -0
- data/test/performance/lib/performance/test_case.rb +152 -0
- data/test/performance/lib/performance/timer.rb +40 -0
- data/test/performance/lib/performance.rb +38 -0
- data/test/performance/script/baselines +102 -0
- data/test/performance/script/mega-runner +37 -0
- data/test/performance/script/runner +133 -0
- data/test/performance/suites/active_record.rb +47 -0
- data/test/performance/suites/agent_attributes.rb +62 -0
- data/test/performance/suites/config.rb +35 -0
- data/test/performance/suites/marshalling.rb +156 -0
- data/test/performance/suites/queue_time.rb +21 -0
- data/test/performance/suites/rack_middleware.rb +136 -0
- data/test/performance/suites/rum_autoinsertion.rb +75 -0
- data/test/performance/suites/sql_obfuscation.rb +30 -0
- data/test/performance/suites/startup.rb +12 -0
- data/test/performance/suites/stats_hash.rb +31 -0
- data/test/performance/suites/thread_profiling.rb +116 -0
- data/test/performance/suites/trace_execution_scoped.rb +32 -0
- data/test/performance/suites/transaction_tracing.rb +106 -0
- data/test/script/build_test_gem.sh +57 -0
- data/test/script/ci.sh +170 -0
- data/test/script/ci_agent-tests_runner.sh +82 -0
- data/test/script/ci_bench.sh +52 -0
- data/test/script/ci_multiverse_runner.sh +63 -0
- data/test/script/path_hash.rb +49 -0
- data/test/test_helper.rb +266 -0
- data/ui/helpers/developer_mode_helper.rb +324 -0
- data/ui/helpers/google_pie_chart.rb +53 -0
- data/ui/views/layouts/mmtrix_default.rhtml +48 -0
- data/ui/views/mmtrix/_explain_plans.rhtml +27 -0
- data/ui/views/mmtrix/_sample.rhtml +20 -0
- data/ui/views/mmtrix/_segment.rhtml +28 -0
- data/ui/views/mmtrix/_segment_limit_message.rhtml +1 -0
- data/ui/views/mmtrix/_segment_row.rhtml +12 -0
- data/ui/views/mmtrix/_show_sample_detail.rhtml +24 -0
- data/ui/views/mmtrix/_show_sample_sql.rhtml +24 -0
- data/ui/views/mmtrix/_show_sample_summary.rhtml +3 -0
- data/ui/views/mmtrix/_sql_row.rhtml +16 -0
- data/ui/views/mmtrix/_stack_trace.rhtml +15 -0
- data/ui/views/mmtrix/_table.rhtml +12 -0
- data/ui/views/mmtrix/explain_sql.rhtml +43 -0
- data/ui/views/mmtrix/file/images/arrow-close.png +0 -0
- data/ui/views/mmtrix/file/images/arrow-open.png +0 -0
- data/ui/views/mmtrix/file/images/blue_bar.gif +0 -0
- data/ui/views/mmtrix/file/images/file_icon.png +0 -0
- data/ui/views/mmtrix/file/images/gray_bar.gif +0 -0
- data/ui/views/mmtrix/file/images/mmtrix-rpm-desktop.gif +0 -0
- data/ui/views/mmtrix/file/images/mmtrix_rpm_desktop.gif +0 -0
- data/ui/views/mmtrix/file/images/textmate.png +0 -0
- data/ui/views/mmtrix/file/javascript/jquery-1.4.2.js +6243 -0
- data/ui/views/mmtrix/file/javascript/transaction_sample.js +123 -0
- data/ui/views/mmtrix/file/stylesheets/style.css +490 -0
- data/ui/views/mmtrix/index.rhtml +70 -0
- data/ui/views/mmtrix/sample_not_found.rhtml +2 -0
- data/ui/views/mmtrix/show_sample.rhtml +81 -0
- data/ui/views/mmtrix/threads.rhtml +45 -0
- data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb +7 -0
- data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb +122 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/.specification +116 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +5 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/action_mailer.rb +18 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/active_merchant.rb +35 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/active_record.rb +37 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/apdex.rb +93 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/background_transaction.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/client.rb +50 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/controller.rb +71 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/controller_cpu.rb +47 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/controller_ext.rb +21 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/database.rb +52 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/database_pool.rb +28 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/dot_net.rb +32 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/dot_net_parser.rb +21 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/errors.rb +15 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/external.rb +59 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/frontend.rb +44 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/gc.rb +24 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/hibernate_session.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/java.rb +35 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/java_parser.rb +21 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/jsp.rb +38 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/jsp_tag.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/mem_cache.rb +59 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/metric_parser.rb +138 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/middleware.rb +34 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/nested.rb +24 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/orm.rb +31 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/other_transaction.rb +44 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/servlet.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/servlet_context_listener.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/servlet_filter.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/servlet_init.rb +11 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/solr.rb +31 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/solr_request_handler.rb +19 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/spring.rb +58 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/spring_controller.rb +10 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/spring_view.rb +10 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/struts_action.rb +24 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/struts_result.rb +24 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/version.rb +9 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/view.rb +74 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/web_frontend.rb +22 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/web_service.rb +18 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser/web_transaction.rb +137 -0
- data/vendor/gems/metric_parser-0.1.0.pre1/lib/mmtrix/metric_parser.rb +70 -0
- metadata +1263 -0
@@ -0,0 +1,597 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "new_cat",
|
4
|
+
"appName": "testAppName",
|
5
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
6
|
+
"transactionGuid": "9323dc260548ed0e",
|
7
|
+
"inboundPayload": [
|
8
|
+
"b854df4feb2b1f06",
|
9
|
+
false,
|
10
|
+
"7e249074f277923d",
|
11
|
+
"5d2957be"
|
12
|
+
],
|
13
|
+
"expectedIntrinsicFields": {
|
14
|
+
"nr.guid": "9323dc260548ed0e",
|
15
|
+
"nr.tripId": "7e249074f277923d",
|
16
|
+
"nr.pathHash": "815b96d3",
|
17
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
18
|
+
"nr.referringPathHash": "5d2957be"
|
19
|
+
},
|
20
|
+
"nonExpectedIntrinsicFields": [
|
21
|
+
"nr.alternatePathHashes"
|
22
|
+
]
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "new_cat_path_hash_with_leading_zero",
|
26
|
+
"appName": "testAppName",
|
27
|
+
"transactionName": "WebTransaction/Custom/txn4",
|
28
|
+
"transactionGuid": "9323dc260548ed0e",
|
29
|
+
"inboundPayload": [
|
30
|
+
"b854df4feb2b1f06",
|
31
|
+
false,
|
32
|
+
"7e249074f277923d",
|
33
|
+
"5d2957be"
|
34
|
+
],
|
35
|
+
"expectedIntrinsicFields": {
|
36
|
+
"nr.guid": "9323dc260548ed0e",
|
37
|
+
"nr.tripId": "7e249074f277923d",
|
38
|
+
"nr.pathHash": "0e258e4e",
|
39
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
40
|
+
"nr.referringPathHash": "5d2957be"
|
41
|
+
},
|
42
|
+
"nonExpectedIntrinsicFields": [
|
43
|
+
"nr.alternatePathHashes"
|
44
|
+
]
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"name": "new_cat_path_hash_with_unicode_name",
|
48
|
+
"appName": "testAppName",
|
49
|
+
"transactionName": "WebTransaction/Custom/txn\u221a\u221a\u221a",
|
50
|
+
"transactionGuid": "9323dc260548ed0e",
|
51
|
+
"inboundPayload": [
|
52
|
+
"b854df4feb2b1f06",
|
53
|
+
false,
|
54
|
+
"7e249074f277923d",
|
55
|
+
"5d2957be"
|
56
|
+
],
|
57
|
+
"expectedIntrinsicFields": {
|
58
|
+
"nr.guid": "9323dc260548ed0e",
|
59
|
+
"nr.tripId": "7e249074f277923d",
|
60
|
+
"nr.pathHash": "3d015d23",
|
61
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
62
|
+
"nr.referringPathHash": "5d2957be"
|
63
|
+
},
|
64
|
+
"nonExpectedIntrinsicFields": [
|
65
|
+
"nr.alternatePathHashes"
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"name": "new_cat_no_referring_payload",
|
70
|
+
"appName": "testAppName",
|
71
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
72
|
+
"transactionGuid": "9323dc260548ed0e",
|
73
|
+
"inboundPayload": null,
|
74
|
+
"expectedIntrinsicFields": {},
|
75
|
+
"nonExpectedIntrinsicFields": [
|
76
|
+
"nr.guid",
|
77
|
+
"nr.tripId",
|
78
|
+
"nr.pathHash",
|
79
|
+
"nr.referringTransactionGuid",
|
80
|
+
"nr.referringPathHash",
|
81
|
+
"nr.alternatePathHashes"
|
82
|
+
]
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "new_cat_with_call_out",
|
86
|
+
"appName": "testAppName",
|
87
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
88
|
+
"transactionGuid": "9323dc260548ed0e",
|
89
|
+
"inboundPayload": null,
|
90
|
+
"outboundRequests": [
|
91
|
+
{
|
92
|
+
"outboundTxnName": "WebTransaction/Custom/testTxnName",
|
93
|
+
"expectedOutboundPayload": [
|
94
|
+
"9323dc260548ed0e",
|
95
|
+
false,
|
96
|
+
"9323dc260548ed0e",
|
97
|
+
"3b0939af"
|
98
|
+
]
|
99
|
+
}
|
100
|
+
],
|
101
|
+
"expectedIntrinsicFields": {
|
102
|
+
"nr.guid": "9323dc260548ed0e",
|
103
|
+
"nr.tripId": "9323dc260548ed0e",
|
104
|
+
"nr.pathHash": "3b0939af"
|
105
|
+
},
|
106
|
+
"nonExpectedIntrinsicFields": [
|
107
|
+
"nr.referringTransactionGuid",
|
108
|
+
"nr.referringPathHash",
|
109
|
+
"nr.alternatePathHashes"
|
110
|
+
]
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"name": "new_cat_with_multiple_calls_out",
|
114
|
+
"appName": "testAppName",
|
115
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
116
|
+
"transactionGuid": "9323dc260548ed0e",
|
117
|
+
"inboundPayload": null,
|
118
|
+
"outboundRequests": [
|
119
|
+
{
|
120
|
+
"outboundTxnName": "WebTransaction/Custom/otherTxnName",
|
121
|
+
"expectedOutboundPayload": [
|
122
|
+
"9323dc260548ed0e",
|
123
|
+
false,
|
124
|
+
"9323dc260548ed0e",
|
125
|
+
"f1c8adf5"
|
126
|
+
]
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"outboundTxnName": "WebTransaction/Custom/otherTxnName",
|
130
|
+
"expectedOutboundPayload": [
|
131
|
+
"9323dc260548ed0e",
|
132
|
+
false,
|
133
|
+
"9323dc260548ed0e",
|
134
|
+
"f1c8adf5"
|
135
|
+
]
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"outboundTxnName": "WebTransaction/Custom/moreOtherTxnName",
|
139
|
+
"expectedOutboundPayload": [
|
140
|
+
"9323dc260548ed0e",
|
141
|
+
false,
|
142
|
+
"9323dc260548ed0e",
|
143
|
+
"ea19b61c"
|
144
|
+
]
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"outboundTxnName": "WebTransaction/Custom/moreDifferentTxnName",
|
148
|
+
"expectedOutboundPayload": [
|
149
|
+
"9323dc260548ed0e",
|
150
|
+
false,
|
151
|
+
"9323dc260548ed0e",
|
152
|
+
"e00736cc"
|
153
|
+
]
|
154
|
+
}
|
155
|
+
],
|
156
|
+
"expectedIntrinsicFields": {
|
157
|
+
"nr.guid": "9323dc260548ed0e",
|
158
|
+
"nr.tripId": "9323dc260548ed0e",
|
159
|
+
"nr.pathHash": "3b0939af",
|
160
|
+
"nr.alternatePathHashes": "e00736cc,ea19b61c,f1c8adf5"
|
161
|
+
},
|
162
|
+
"nonExpectedIntrinsicFields": [
|
163
|
+
"nr.referringTransactionGuid",
|
164
|
+
"nr.referringPathHash"
|
165
|
+
]
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"name": "new_cat_with_many_unique_calls_out",
|
169
|
+
"appName": "testAppName",
|
170
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
171
|
+
"transactionGuid": "9323dc260548ed0e",
|
172
|
+
"inboundPayload": null,
|
173
|
+
"outboundRequests": [
|
174
|
+
{
|
175
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
176
|
+
"expectedOutboundPayload": [
|
177
|
+
"9323dc260548ed0e",
|
178
|
+
false,
|
179
|
+
"9323dc260548ed0e",
|
180
|
+
"93fb4310"
|
181
|
+
]
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"outboundTxnName": "WebTransaction/Custom/txn2",
|
185
|
+
"expectedOutboundPayload": [
|
186
|
+
"9323dc260548ed0e",
|
187
|
+
false,
|
188
|
+
"9323dc260548ed0e",
|
189
|
+
"a67c2da4"
|
190
|
+
]
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"outboundTxnName": "WebTransaction/Custom/txn3",
|
194
|
+
"expectedOutboundPayload": [
|
195
|
+
"9323dc260548ed0e",
|
196
|
+
false,
|
197
|
+
"9323dc260548ed0e",
|
198
|
+
"0d932b2b"
|
199
|
+
]
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"outboundTxnName": "WebTransaction/Custom/txn4",
|
203
|
+
"expectedOutboundPayload": [
|
204
|
+
"9323dc260548ed0e",
|
205
|
+
false,
|
206
|
+
"9323dc260548ed0e",
|
207
|
+
"b4772132"
|
208
|
+
]
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"outboundTxnName": "WebTransaction/Custom/txn5",
|
212
|
+
"expectedOutboundPayload": [
|
213
|
+
"9323dc260548ed0e",
|
214
|
+
false,
|
215
|
+
"9323dc260548ed0e",
|
216
|
+
"51a1a337"
|
217
|
+
]
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"outboundTxnName": "WebTransaction/Custom/txn6",
|
221
|
+
"expectedOutboundPayload": [
|
222
|
+
"9323dc260548ed0e",
|
223
|
+
false,
|
224
|
+
"9323dc260548ed0e",
|
225
|
+
"77b5cb70"
|
226
|
+
]
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"outboundTxnName": "WebTransaction/Custom/txn7",
|
230
|
+
"expectedOutboundPayload": [
|
231
|
+
"9323dc260548ed0e",
|
232
|
+
false,
|
233
|
+
"9323dc260548ed0e",
|
234
|
+
"8a842c7f"
|
235
|
+
]
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"outboundTxnName": "WebTransaction/Custom/txn8",
|
239
|
+
"expectedOutboundPayload": [
|
240
|
+
"9323dc260548ed0e",
|
241
|
+
false,
|
242
|
+
"9323dc260548ed0e",
|
243
|
+
"b968edb8"
|
244
|
+
]
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"outboundTxnName": "WebTransaction/Custom/txn9",
|
248
|
+
"expectedOutboundPayload": [
|
249
|
+
"9323dc260548ed0e",
|
250
|
+
false,
|
251
|
+
"9323dc260548ed0e",
|
252
|
+
"2691f90e"
|
253
|
+
]
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"outboundTxnName": "WebTransaction/Custom/txn10",
|
257
|
+
"expectedOutboundPayload": [
|
258
|
+
"9323dc260548ed0e",
|
259
|
+
false,
|
260
|
+
"9323dc260548ed0e",
|
261
|
+
"b46aec87"
|
262
|
+
]
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"outboundTxnName": "WebTransaction/Custom/txn11",
|
266
|
+
"expectedOutboundPayload": [
|
267
|
+
"9323dc260548ed0e",
|
268
|
+
false,
|
269
|
+
"9323dc260548ed0e",
|
270
|
+
"10bb3bf3"
|
271
|
+
]
|
272
|
+
}
|
273
|
+
],
|
274
|
+
"expectedIntrinsicFields": {
|
275
|
+
"nr.guid": "9323dc260548ed0e",
|
276
|
+
"nr.tripId": "9323dc260548ed0e",
|
277
|
+
"nr.pathHash": "3b0939af",
|
278
|
+
"nr.alternatePathHashes": "0d932b2b,2691f90e,51a1a337,77b5cb70,8a842c7f,93fb4310,a67c2da4,b46aec87,b4772132,b968edb8"
|
279
|
+
},
|
280
|
+
"nonExpectedIntrinsicFields": [
|
281
|
+
"nr.referringTransactionGuid",
|
282
|
+
"nr.referringPathHash"
|
283
|
+
]
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"name": "new_cat_with_many_calls_out",
|
287
|
+
"appName": "testAppName",
|
288
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
289
|
+
"transactionGuid": "9323dc260548ed0e",
|
290
|
+
"inboundPayload": null,
|
291
|
+
"outboundRequests": [
|
292
|
+
{
|
293
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
294
|
+
"expectedOutboundPayload": [
|
295
|
+
"9323dc260548ed0e",
|
296
|
+
false,
|
297
|
+
"9323dc260548ed0e",
|
298
|
+
"93fb4310"
|
299
|
+
]
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
303
|
+
"expectedOutboundPayload": [
|
304
|
+
"9323dc260548ed0e",
|
305
|
+
false,
|
306
|
+
"9323dc260548ed0e",
|
307
|
+
"93fb4310"
|
308
|
+
]
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
312
|
+
"expectedOutboundPayload": [
|
313
|
+
"9323dc260548ed0e",
|
314
|
+
false,
|
315
|
+
"9323dc260548ed0e",
|
316
|
+
"93fb4310"
|
317
|
+
]
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
321
|
+
"expectedOutboundPayload": [
|
322
|
+
"9323dc260548ed0e",
|
323
|
+
false,
|
324
|
+
"9323dc260548ed0e",
|
325
|
+
"93fb4310"
|
326
|
+
]
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
330
|
+
"expectedOutboundPayload": [
|
331
|
+
"9323dc260548ed0e",
|
332
|
+
false,
|
333
|
+
"9323dc260548ed0e",
|
334
|
+
"93fb4310"
|
335
|
+
]
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
339
|
+
"expectedOutboundPayload": [
|
340
|
+
"9323dc260548ed0e",
|
341
|
+
false,
|
342
|
+
"9323dc260548ed0e",
|
343
|
+
"93fb4310"
|
344
|
+
]
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
348
|
+
"expectedOutboundPayload": [
|
349
|
+
"9323dc260548ed0e",
|
350
|
+
false,
|
351
|
+
"9323dc260548ed0e",
|
352
|
+
"93fb4310"
|
353
|
+
]
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
357
|
+
"expectedOutboundPayload": [
|
358
|
+
"9323dc260548ed0e",
|
359
|
+
false,
|
360
|
+
"9323dc260548ed0e",
|
361
|
+
"93fb4310"
|
362
|
+
]
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
366
|
+
"expectedOutboundPayload": [
|
367
|
+
"9323dc260548ed0e",
|
368
|
+
false,
|
369
|
+
"9323dc260548ed0e",
|
370
|
+
"93fb4310"
|
371
|
+
]
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
375
|
+
"expectedOutboundPayload": [
|
376
|
+
"9323dc260548ed0e",
|
377
|
+
false,
|
378
|
+
"9323dc260548ed0e",
|
379
|
+
"93fb4310"
|
380
|
+
]
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"outboundTxnName": "WebTransaction/Custom/txn1",
|
384
|
+
"expectedOutboundPayload": [
|
385
|
+
"9323dc260548ed0e",
|
386
|
+
false,
|
387
|
+
"9323dc260548ed0e",
|
388
|
+
"93fb4310"
|
389
|
+
]
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"outboundTxnName": "WebTransaction/Custom/txn2",
|
393
|
+
"expectedOutboundPayload": [
|
394
|
+
"9323dc260548ed0e",
|
395
|
+
false,
|
396
|
+
"9323dc260548ed0e",
|
397
|
+
"a67c2da4"
|
398
|
+
]
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"expectedIntrinsicFields": {
|
402
|
+
"nr.guid": "9323dc260548ed0e",
|
403
|
+
"nr.tripId": "9323dc260548ed0e",
|
404
|
+
"nr.pathHash": "3b0939af",
|
405
|
+
"nr.alternatePathHashes": "93fb4310,a67c2da4"
|
406
|
+
},
|
407
|
+
"nonExpectedIntrinsicFields": [
|
408
|
+
"nr.referringTransactionGuid",
|
409
|
+
"nr.referringPathHash"
|
410
|
+
]
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"name": "new_cat_with_referring_info_and_call_out",
|
414
|
+
"appName": "testAppName",
|
415
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
416
|
+
"transactionGuid": "9323dc260548ed0e",
|
417
|
+
"inboundPayload": [
|
418
|
+
"b854df4feb2b1f06",
|
419
|
+
false,
|
420
|
+
"7e249074f277923d",
|
421
|
+
"5d2957be"
|
422
|
+
],
|
423
|
+
"outboundRequests": [
|
424
|
+
{
|
425
|
+
"outboundTxnName": "WebTransaction/Custom/otherTxnName",
|
426
|
+
"expectedOutboundPayload": [
|
427
|
+
"9323dc260548ed0e",
|
428
|
+
false,
|
429
|
+
"7e249074f277923d",
|
430
|
+
"4b9a0289"
|
431
|
+
]
|
432
|
+
}
|
433
|
+
],
|
434
|
+
"expectedIntrinsicFields": {
|
435
|
+
"nr.guid": "9323dc260548ed0e",
|
436
|
+
"nr.tripId": "7e249074f277923d",
|
437
|
+
"nr.pathHash": "815b96d3",
|
438
|
+
"nr.alternatePathHashes": "4b9a0289",
|
439
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
440
|
+
"nr.referringPathHash": "5d2957be"
|
441
|
+
},
|
442
|
+
"nonExpectedIntrinsicFields": []
|
443
|
+
},
|
444
|
+
{
|
445
|
+
"name": "new_cat_missing_path_hash",
|
446
|
+
"appName": "testAppName",
|
447
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
448
|
+
"transactionGuid": "9323dc260548ed0e",
|
449
|
+
"inboundPayload": [
|
450
|
+
"b854df4feb2b1f06",
|
451
|
+
false,
|
452
|
+
"7e249074f277923d"
|
453
|
+
],
|
454
|
+
"expectedIntrinsicFields": {
|
455
|
+
"nr.guid": "9323dc260548ed0e",
|
456
|
+
"nr.tripId": "7e249074f277923d",
|
457
|
+
"nr.pathHash": "3b0939af",
|
458
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06"
|
459
|
+
},
|
460
|
+
"nonExpectedIntrinsicFields": [
|
461
|
+
"nr.alternatePathHashes",
|
462
|
+
"nr.referringPathHash"
|
463
|
+
]
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"name": "new_cat_null_path_hash",
|
467
|
+
"appName": "testAppName",
|
468
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
469
|
+
"transactionGuid": "9323dc260548ed0e",
|
470
|
+
"inboundPayload": [
|
471
|
+
"b854df4feb2b1f06",
|
472
|
+
false,
|
473
|
+
"7e249074f277923d",
|
474
|
+
null
|
475
|
+
],
|
476
|
+
"expectedIntrinsicFields": {
|
477
|
+
"nr.guid": "9323dc260548ed0e",
|
478
|
+
"nr.tripId": "7e249074f277923d",
|
479
|
+
"nr.pathHash": "3b0939af",
|
480
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06"
|
481
|
+
},
|
482
|
+
"nonExpectedIntrinsicFields": [
|
483
|
+
"nr.alternatePathHashes",
|
484
|
+
"nr.referringPathHash"
|
485
|
+
]
|
486
|
+
},
|
487
|
+
{
|
488
|
+
"name": "new_cat_malformed_path_hash",
|
489
|
+
"appName": "testAppName",
|
490
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
491
|
+
"transactionGuid": "9323dc260548ed0e",
|
492
|
+
"inboundPayload": [
|
493
|
+
"b854df4feb2b1f06",
|
494
|
+
false,
|
495
|
+
"7e249074f277923d",
|
496
|
+
[
|
497
|
+
"scrambled",
|
498
|
+
"eggs"
|
499
|
+
]
|
500
|
+
],
|
501
|
+
"expectedIntrinsicFields": {
|
502
|
+
"nr.guid": "9323dc260548ed0e",
|
503
|
+
"nr.tripId": "7e249074f277923d",
|
504
|
+
"nr.pathHash": "3b0939af",
|
505
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06"
|
506
|
+
},
|
507
|
+
"nonExpectedIntrinsicFields": [
|
508
|
+
"nr.alternatePathHashes",
|
509
|
+
"nr.referringPathHash"
|
510
|
+
]
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"name": "new_cat_corrupt_path_hash",
|
514
|
+
"appName": "testAppName",
|
515
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
516
|
+
"transactionGuid": "9323dc260548ed0e",
|
517
|
+
"inboundPayload": [
|
518
|
+
"b854df4feb2b1f06",
|
519
|
+
false,
|
520
|
+
"7e249074f277923d",
|
521
|
+
"ZXYQEDABC"
|
522
|
+
],
|
523
|
+
"expectedIntrinsicFields": {
|
524
|
+
"nr.guid": "9323dc260548ed0e",
|
525
|
+
"nr.tripId": "7e249074f277923d",
|
526
|
+
"nr.pathHash": "3b0939af",
|
527
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
528
|
+
"nr.referringPathHash": "ZXYQEDABC"
|
529
|
+
},
|
530
|
+
"nonExpectedIntrinsicFields": [
|
531
|
+
"nr.alternatePathHashes"
|
532
|
+
]
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"name": "new_cat_malformed_trip_id",
|
536
|
+
"appName": "testAppName",
|
537
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
538
|
+
"transactionGuid": "9323dc260548ed0e",
|
539
|
+
"inboundPayload": [
|
540
|
+
"b854df4feb2b1f06",
|
541
|
+
false,
|
542
|
+
["scrambled"],
|
543
|
+
"5d2957be"
|
544
|
+
],
|
545
|
+
"expectedIntrinsicFields": {
|
546
|
+
"nr.guid": "9323dc260548ed0e",
|
547
|
+
"nr.tripId": "9323dc260548ed0e",
|
548
|
+
"nr.pathHash": "815b96d3",
|
549
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06",
|
550
|
+
"nr.referringPathHash": "5d2957be"
|
551
|
+
},
|
552
|
+
"nonExpectedIntrinsicFields": [
|
553
|
+
"nr.alternatePathHashes"
|
554
|
+
]
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"name": "new_cat_missing_trip_id",
|
558
|
+
"appName": "testAppName",
|
559
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
560
|
+
"transactionGuid": "9323dc260548ed0e",
|
561
|
+
"inboundPayload": [
|
562
|
+
"b854df4feb2b1f06",
|
563
|
+
false
|
564
|
+
],
|
565
|
+
"expectedIntrinsicFields": {
|
566
|
+
"nr.guid": "9323dc260548ed0e",
|
567
|
+
"nr.tripId": "9323dc260548ed0e",
|
568
|
+
"nr.pathHash": "3b0939af",
|
569
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06"
|
570
|
+
},
|
571
|
+
"nonExpectedIntrinsicFields": [
|
572
|
+
"nr.referringPathHash",
|
573
|
+
"nr.alternatePathHashes"
|
574
|
+
]
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"name": "new_cat_null_trip_id",
|
578
|
+
"appName": "testAppName",
|
579
|
+
"transactionName": "WebTransaction/Custom/testTxnName",
|
580
|
+
"transactionGuid": "9323dc260548ed0e",
|
581
|
+
"inboundPayload": [
|
582
|
+
"b854df4feb2b1f06",
|
583
|
+
false,
|
584
|
+
null
|
585
|
+
],
|
586
|
+
"expectedIntrinsicFields": {
|
587
|
+
"nr.guid": "9323dc260548ed0e",
|
588
|
+
"nr.tripId": "9323dc260548ed0e",
|
589
|
+
"nr.pathHash": "3b0939af",
|
590
|
+
"nr.referringTransactionGuid": "b854df4feb2b1f06"
|
591
|
+
},
|
592
|
+
"nonExpectedIntrinsicFields": [
|
593
|
+
"nr.alternatePathHashes",
|
594
|
+
"nr.referringPathHash"
|
595
|
+
]
|
596
|
+
}
|
597
|
+
]
|
@@ -0,0 +1,6 @@
|
|
1
|
+
These tests cover parsing of Docker container IDs on Linux hosts out of
|
2
|
+
`/proc/self/cgroup` (or `/proc/<pid>/cgroup` more generally).
|
3
|
+
|
4
|
+
The `cases.json` file lists each filename in this directory containing
|
5
|
+
example `/proc/self/cgroup` content, and the expected Docker container ID that
|
6
|
+
should be parsed from that file.
|
@@ -0,0 +1,75 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"filename": "docker-0.9.1.txt",
|
4
|
+
"containerId": "f37a7e4d17017e7bf774656b19ca4360c6cdc4951c86700a464101d0d9ce97ee",
|
5
|
+
"expectedMetrics": null
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"filename": "docker-1.0.0.txt",
|
9
|
+
"containerId": "3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782",
|
10
|
+
"expectedMetrics": null
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"filename": "docker-1.1.2-lxc-driver.txt",
|
14
|
+
"containerId": "cb8c113e5f3cf8332f5231f8154adc429ea910f7c29995372de4f571c55d3159",
|
15
|
+
"expectedMetrics": null
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"filename": "docker-1.1.2-native-driver-fs.txt",
|
19
|
+
"containerId": "2a4f870e24a3b52eb9fe7f3e02858c31855e213e568cfa6c76cb046ffa5b8a28",
|
20
|
+
"expectedMetrics": null
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"filename": "docker-1.1.2-native-driver-systemd.txt",
|
24
|
+
"containerId": "67f98c9e6188f9c1818672a15dbe46237b6ee7e77f834d40d41c5fb3c2f84a2f",
|
25
|
+
"expectedMetrics": null
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"filename": "docker-1.3.txt",
|
29
|
+
"containerId": "47cbd16b77c50cbf71401c069cd2189f0e659af17d5a2daca3bddf59d8a870b2",
|
30
|
+
"expectedMetrics": null
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"filename": "heroku.txt",
|
34
|
+
"containerId": null,
|
35
|
+
"expectedMetrics": null
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"filename": "ubuntu-14.04-no-container.txt",
|
39
|
+
"containerId": null,
|
40
|
+
"expectedMetrics": null
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"filename": "ubuntu-14.04-lxc-container.txt",
|
44
|
+
"containerId": null,
|
45
|
+
"expectedMetrics": null
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"filename": "ubuntu-14.10-no-container.txt",
|
49
|
+
"containerId": null,
|
50
|
+
"expectedMetrics": null
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"filename": "empty.txt",
|
54
|
+
"containerId": null,
|
55
|
+
"expectedMetrics": null
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"filename": "invalid-characters.txt",
|
59
|
+
"containerId": null,
|
60
|
+
"expectedMetrics": {
|
61
|
+
"Supportability/utilization/docker/error": {
|
62
|
+
"callCount": 1
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"filename": "invalid-length.txt",
|
68
|
+
"containerId": null,
|
69
|
+
"expectedMetrics": {
|
70
|
+
"Supportability/utilization/docker/error": {
|
71
|
+
"callCount": 1
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
]
|
@@ -0,0 +1,10 @@
|
|
1
|
+
11:hugetlb:/
|
2
|
+
10:perf_event:/
|
3
|
+
9:blkio:/
|
4
|
+
8:freezer:/
|
5
|
+
7:devices:/docker/f37a7e4d17017e7bf774656b19ca4360c6cdc4951c86700a464101d0d9ce97ee
|
6
|
+
6:memory:/
|
7
|
+
5:cpuacct:/
|
8
|
+
4:cpu:/docker/f37a7e4d17017e7bf774656b19ca4360c6cdc4951c86700a464101d0d9ce97ee
|
9
|
+
3:cpuset:/
|
10
|
+
2:name=systemd:/
|
@@ -0,0 +1,10 @@
|
|
1
|
+
11:hugetlb:/
|
2
|
+
10:perf_event:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
3
|
+
9:blkio:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
4
|
+
8:freezer:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
5
|
+
7:devices:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
6
|
+
6:memory:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
7
|
+
5:cpuacct:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
8
|
+
4:cpu:/docker/3ccfa00432798ff38f85839de1e396f771b4acbe9f4ddea0a761c39b9790a782
|
9
|
+
3:cpuset:/
|
10
|
+
2:name=systemd:/
|