newrelic_rpm 5.5.0.348 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +931 -0
- data/CONTRIBUTING.md +117 -19
- data/Gemfile +6 -2
- data/Guardfile +18 -1
- data/LICENSE +208 -38
- data/README.md +80 -84
- data/ROADMAP.md +24 -0
- data/Rakefile +2 -0
- data/THIRD_PARTY_NOTICES.md +213 -0
- data/bin/nrdebug +1 -1
- data/config.dot +1 -0
- data/init.rb +1 -1
- data/install.rb +1 -1
- data/lib/new_relic/agent.rb +111 -20
- data/lib/new_relic/agent/adaptive_sampler.rb +1 -1
- data/lib/new_relic/agent/agent.rb +182 -194
- data/lib/new_relic/agent/agent_logger.rb +5 -1
- data/lib/new_relic/agent/attribute_filter.rb +85 -25
- data/lib/new_relic/agent/attribute_processing.rb +1 -1
- data/lib/new_relic/agent/attributes.rb +152 -0
- data/lib/new_relic/agent/audit_logger.rb +11 -1
- data/lib/new_relic/agent/autostart.rb +19 -15
- data/lib/new_relic/agent/chained_call.rb +1 -1
- data/lib/new_relic/agent/commands/agent_command.rb +1 -1
- data/lib/new_relic/agent/commands/agent_command_router.rb +3 -22
- data/lib/new_relic/agent/commands/thread_profiler_session.rb +1 -1
- data/lib/new_relic/agent/configuration.rb +1 -1
- data/lib/new_relic/agent/configuration/default_source.rb +656 -188
- data/lib/new_relic/agent/configuration/dotted_hash.rb +1 -1
- data/lib/new_relic/agent/configuration/environment_source.rb +5 -3
- data/lib/new_relic/agent/configuration/event_harvest_config.rb +45 -0
- data/lib/new_relic/agent/configuration/high_security_source.rb +2 -1
- data/lib/new_relic/agent/configuration/manager.rb +17 -13
- data/lib/new_relic/agent/configuration/manual_source.rb +1 -1
- data/lib/new_relic/agent/configuration/mask_defaults.rb +1 -1
- data/lib/new_relic/agent/configuration/security_policy_source.rb +15 -1
- data/lib/new_relic/agent/configuration/server_source.rb +39 -4
- data/lib/new_relic/agent/configuration/yaml_source.rb +12 -7
- data/lib/new_relic/agent/connect/request_builder.rb +63 -0
- data/lib/new_relic/agent/connect/response_handler.rb +61 -0
- data/lib/new_relic/agent/custom_event_aggregator.rb +1 -1
- data/lib/new_relic/agent/database.rb +2 -3
- data/lib/new_relic/agent/database/explain_plan_helpers.rb +1 -1
- data/lib/new_relic/agent/database/obfuscation_helpers.rb +2 -2
- data/lib/new_relic/agent/database/obfuscator.rb +1 -1
- data/lib/new_relic/agent/database/postgres_explain_obfuscator.rb +1 -1
- data/lib/new_relic/agent/database_adapter.rb +33 -0
- data/lib/new_relic/agent/datastores.rb +7 -9
- data/lib/new_relic/agent/datastores/metric_helper.rb +2 -3
- data/lib/new_relic/agent/datastores/mongo.rb +2 -2
- data/lib/new_relic/agent/datastores/mongo/event_formatter.rb +3 -3
- data/lib/new_relic/agent/datastores/mongo/metric_translator.rb +1 -1
- data/lib/new_relic/agent/datastores/mongo/obfuscator.rb +9 -9
- data/lib/new_relic/agent/datastores/mongo/statement_formatter.rb +1 -1
- data/lib/new_relic/agent/datastores/redis.rb +1 -5
- data/lib/new_relic/agent/deprecator.rb +1 -1
- data/lib/new_relic/agent/distributed_tracing.rb +115 -32
- data/lib/new_relic/agent/{cross_app_payload.rb → distributed_tracing/cross_app_payload.rb} +3 -2
- data/lib/new_relic/agent/{cross_app_tracing.rb → distributed_tracing/cross_app_tracing.rb} +61 -46
- data/lib/new_relic/agent/distributed_tracing/distributed_trace_attributes.rb +84 -0
- data/lib/new_relic/agent/distributed_tracing/distributed_trace_metrics.rb +75 -0
- data/lib/new_relic/agent/{distributed_trace_payload.rb → distributed_tracing/distributed_trace_payload.rb} +32 -113
- data/lib/new_relic/agent/distributed_tracing/distributed_trace_transport_type.rb +39 -0
- data/lib/new_relic/agent/distributed_tracing/trace_context.rb +246 -0
- data/lib/new_relic/agent/distributed_tracing/trace_context_payload.rb +126 -0
- data/lib/new_relic/agent/encoding_normalizer.rb +1 -1
- data/lib/new_relic/agent/error_collector.rb +88 -58
- data/lib/new_relic/agent/error_event_aggregator.rb +10 -7
- data/lib/new_relic/agent/error_filter.rb +167 -0
- data/lib/new_relic/agent/error_trace_aggregator.rb +2 -1
- data/lib/new_relic/agent/event_aggregator.rb +27 -33
- data/lib/new_relic/agent/event_buffer.rb +1 -1
- data/lib/new_relic/agent/event_listener.rb +1 -1
- data/lib/new_relic/agent/event_loop.rb +1 -1
- data/lib/new_relic/agent/external.rb +13 -11
- data/lib/new_relic/agent/guid_generator.rb +28 -0
- data/lib/new_relic/agent/harvester.rb +1 -1
- data/lib/new_relic/agent/heap.rb +1 -1
- data/lib/new_relic/agent/hostname.rb +16 -2
- data/lib/new_relic/agent/http_clients/abstract.rb +82 -0
- data/lib/new_relic/agent/http_clients/curb_wrappers.rb +25 -20
- data/lib/new_relic/agent/http_clients/excon_wrappers.rb +29 -14
- data/lib/new_relic/agent/http_clients/http_rb_wrappers.rb +18 -22
- data/lib/new_relic/agent/http_clients/httpclient_wrappers.rb +11 -12
- data/lib/new_relic/agent/http_clients/net_http_wrappers.rb +17 -5
- data/lib/new_relic/agent/http_clients/typhoeus_wrappers.rb +5 -7
- data/lib/new_relic/agent/http_clients/uri_util.rb +12 -11
- data/lib/new_relic/agent/instrumentation.rb +1 -1
- data/lib/new_relic/agent/instrumentation/action_cable_subscriber.rb +26 -43
- data/lib/new_relic/agent/instrumentation/action_controller_subscriber.rb +53 -73
- data/lib/new_relic/agent/instrumentation/action_view_subscriber.rb +81 -56
- data/lib/new_relic/agent/instrumentation/active_job.rb +7 -8
- data/lib/new_relic/agent/instrumentation/active_merchant.rb +1 -1
- data/lib/new_relic/agent/instrumentation/active_record.rb +85 -38
- data/lib/new_relic/agent/instrumentation/active_record_helper.rb +17 -6
- data/lib/new_relic/agent/instrumentation/active_record_notifications.rb +152 -0
- data/lib/new_relic/agent/instrumentation/active_record_prepend.rb +35 -11
- data/lib/new_relic/agent/instrumentation/active_record_subscriber.rb +47 -51
- data/lib/new_relic/agent/instrumentation/active_storage.rb +23 -0
- data/lib/new_relic/agent/instrumentation/active_storage_subscriber.rb +63 -0
- data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +10 -9
- data/lib/new_relic/agent/instrumentation/authlogic.rb +1 -1
- data/lib/new_relic/agent/instrumentation/bunny.rb +13 -132
- data/lib/new_relic/agent/instrumentation/bunny/chain.rb +45 -0
- data/lib/new_relic/agent/instrumentation/bunny/instrumentation.rb +152 -0
- data/lib/new_relic/agent/instrumentation/bunny/prepend.rb +35 -0
- data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +11 -4
- data/lib/new_relic/agent/instrumentation/curb.rb +11 -183
- data/lib/new_relic/agent/instrumentation/curb/chain.rb +93 -0
- data/lib/new_relic/agent/instrumentation/curb/instrumentation.rb +222 -0
- data/lib/new_relic/agent/instrumentation/curb/prepend.rb +63 -0
- data/lib/new_relic/agent/instrumentation/data_mapper.rb +5 -3
- data/lib/new_relic/agent/instrumentation/delayed_job/chain.rb +38 -0
- data/lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb +53 -0
- data/lib/new_relic/agent/instrumentation/delayed_job/prepend.rb +34 -0
- data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +9 -49
- data/lib/new_relic/agent/instrumentation/excon.rb +4 -3
- data/lib/new_relic/agent/instrumentation/excon/connection.rb +8 -5
- data/lib/new_relic/agent/instrumentation/excon/middleware.rb +3 -2
- data/lib/new_relic/agent/instrumentation/grape.rb +14 -107
- data/lib/new_relic/agent/instrumentation/grape/chain.rb +25 -0
- data/lib/new_relic/agent/instrumentation/grape/instrumentation.rb +100 -0
- data/lib/new_relic/agent/instrumentation/grape/prepend.rb +17 -0
- data/lib/new_relic/agent/instrumentation/httpclient.rb +10 -30
- data/lib/new_relic/agent/instrumentation/httpclient/chain.rb +25 -0
- data/lib/new_relic/agent/instrumentation/httpclient/instrumentation.rb +38 -0
- data/lib/new_relic/agent/instrumentation/httpclient/prepend.rb +17 -0
- data/lib/new_relic/agent/instrumentation/httprb.rb +29 -0
- data/lib/new_relic/agent/instrumentation/httprb/chain.rb +22 -0
- data/lib/new_relic/agent/instrumentation/httprb/instrumentation.rb +30 -0
- data/lib/new_relic/agent/instrumentation/httprb/prepend.rb +15 -0
- data/lib/new_relic/agent/instrumentation/ignore_actions.rb +1 -1
- data/lib/new_relic/agent/instrumentation/memcache.rb +55 -68
- data/lib/new_relic/agent/instrumentation/memcache/chain.rb +16 -0
- data/lib/new_relic/agent/instrumentation/memcache/dalli.rb +39 -118
- data/lib/new_relic/agent/instrumentation/memcache/helper.rb +56 -0
- data/lib/new_relic/agent/instrumentation/memcache/instrumentation.rb +88 -0
- data/lib/new_relic/agent/instrumentation/memcache/prepend.rb +88 -0
- data/lib/new_relic/agent/instrumentation/merb/controller.rb +1 -1
- data/lib/new_relic/agent/instrumentation/merb/errors.rb +1 -1
- data/lib/new_relic/agent/instrumentation/middleware_proxy.rb +4 -2
- data/lib/new_relic/agent/instrumentation/middleware_tracing.rb +20 -11
- data/lib/new_relic/agent/instrumentation/mongo.rb +17 -4
- data/lib/new_relic/agent/instrumentation/mongodb_command_subscriber.rb +36 -3
- data/lib/new_relic/agent/instrumentation/net_http.rb +44 -0
- data/lib/new_relic/agent/instrumentation/net_http/chain.rb +25 -0
- data/lib/new_relic/agent/instrumentation/net_http/instrumentation.rb +40 -0
- data/lib/new_relic/agent/instrumentation/net_http/prepend.rb +21 -0
- data/lib/new_relic/agent/instrumentation/notifications_subscriber.rb +100 -0
- data/lib/new_relic/agent/instrumentation/padrino.rb +19 -52
- data/lib/new_relic/agent/instrumentation/padrino/chain.rb +34 -0
- data/lib/new_relic/agent/instrumentation/padrino/instrumentation.rb +27 -0
- data/lib/new_relic/agent/instrumentation/padrino/prepend.rb +20 -0
- data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +1 -1
- data/lib/new_relic/agent/instrumentation/queue_time.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rack.rb +30 -138
- data/lib/new_relic/agent/instrumentation/rack/chain.rb +58 -0
- data/lib/new_relic/agent/instrumentation/rack/helpers.rb +32 -0
- data/lib/new_relic/agent/instrumentation/rack/instrumentation.rb +73 -0
- data/lib/new_relic/agent/instrumentation/rack/prepend.rb +37 -0
- data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rails_middleware.rb +1 -1
- data/lib/new_relic/agent/instrumentation/{rails5 → rails_notifications}/action_cable.rb +6 -7
- data/lib/new_relic/agent/instrumentation/{rails5 → rails_notifications}/action_controller.rb +4 -4
- data/lib/new_relic/agent/instrumentation/{rails4 → rails_notifications}/action_view.rb +4 -4
- data/lib/new_relic/agent/instrumentation/rainbows_instrumentation.rb +1 -1
- data/lib/new_relic/agent/instrumentation/rake.rb +14 -155
- data/lib/new_relic/agent/instrumentation/rake/chain.rb +25 -0
- data/lib/new_relic/agent/instrumentation/rake/instrumentation.rb +144 -0
- data/lib/new_relic/agent/instrumentation/rake/prepend.rb +14 -0
- data/lib/new_relic/agent/instrumentation/redis.rb +13 -102
- data/lib/new_relic/agent/instrumentation/redis/chain.rb +34 -0
- data/lib/new_relic/agent/instrumentation/redis/instrumentation.rb +65 -0
- data/lib/new_relic/agent/instrumentation/redis/prepend.rb +24 -0
- data/lib/new_relic/agent/instrumentation/resque.rb +22 -30
- data/lib/new_relic/agent/instrumentation/resque/chain.rb +22 -0
- data/lib/new_relic/agent/instrumentation/resque/helper.rb +19 -0
- data/lib/new_relic/agent/instrumentation/resque/instrumentation.rb +35 -0
- data/lib/new_relic/agent/instrumentation/resque/prepend.rb +16 -0
- data/lib/new_relic/agent/instrumentation/sequel.rb +2 -2
- data/lib/new_relic/agent/instrumentation/sequel_helper.rb +1 -1
- data/lib/new_relic/agent/instrumentation/sidekiq.rb +48 -24
- data/lib/new_relic/agent/instrumentation/sinatra.rb +21 -160
- data/lib/new_relic/agent/instrumentation/sinatra/chain.rb +55 -0
- data/lib/new_relic/agent/instrumentation/sinatra/ignorer.rb +30 -35
- data/lib/new_relic/agent/instrumentation/sinatra/instrumentation.rb +124 -0
- data/lib/new_relic/agent/instrumentation/sinatra/prepend.rb +33 -0
- data/lib/new_relic/agent/instrumentation/sinatra/transaction_namer.rb +1 -1
- data/lib/new_relic/agent/instrumentation/sunspot.rb +1 -1
- data/lib/new_relic/agent/instrumentation/typhoeus.rb +12 -74
- data/lib/new_relic/agent/instrumentation/typhoeus/chain.rb +22 -0
- data/lib/new_relic/agent/instrumentation/typhoeus/instrumentation.rb +82 -0
- data/lib/new_relic/agent/instrumentation/typhoeus/prepend.rb +14 -0
- data/lib/new_relic/agent/internal_agent_error.rb +1 -1
- data/lib/new_relic/agent/javascript_instrumentor.rb +15 -10
- data/lib/new_relic/agent/log_once.rb +1 -1
- data/lib/new_relic/agent/logging.rb +139 -0
- data/lib/new_relic/agent/memory_logger.rb +1 -1
- data/lib/new_relic/agent/messaging.rb +15 -82
- data/lib/new_relic/agent/method_tracer.rb +10 -8
- data/lib/new_relic/agent/method_tracer_helpers.rb +5 -5
- data/lib/new_relic/agent/monitors.rb +27 -0
- data/lib/new_relic/agent/monitors/cross_app_monitor.rb +110 -0
- data/lib/new_relic/agent/monitors/distributed_tracing_monitor.rb +27 -0
- data/lib/new_relic/agent/{inbound_request_monitor.rb → monitors/inbound_request_monitor.rb} +4 -4
- data/lib/new_relic/agent/{synthetics_monitor.rb → monitors/synthetics_monitor.rb} +4 -7
- data/lib/new_relic/agent/new_relic_service.rb +106 -40
- data/lib/new_relic/agent/new_relic_service/encoders.rb +1 -1
- data/lib/new_relic/agent/new_relic_service/json_marshaller.rb +1 -2
- data/lib/new_relic/agent/new_relic_service/marshaller.rb +6 -27
- data/lib/new_relic/agent/new_relic_service/security_policy_settings.rb +1 -1
- data/lib/new_relic/agent/noticible_error.rb +22 -0
- data/lib/new_relic/agent/null_logger.rb +1 -1
- data/lib/new_relic/agent/obfuscator.rb +1 -1
- data/lib/new_relic/agent/parameter_filtering.rb +19 -6
- data/lib/new_relic/agent/payload_metric_mapping.rb +1 -1
- data/lib/new_relic/agent/pipe_channel_manager.rb +1 -1
- data/lib/new_relic/agent/pipe_service.rb +1 -1
- data/lib/new_relic/agent/prepend_supportability.rb +1 -1
- data/lib/new_relic/agent/priority_sampled_buffer.rb +9 -4
- data/lib/new_relic/agent/range_extensions.rb +1 -1
- data/lib/new_relic/agent/rules_engine.rb +1 -1
- data/lib/new_relic/agent/rules_engine/replacement_rule.rb +1 -1
- data/lib/new_relic/agent/rules_engine/segment_terms_rule.rb +1 -1
- data/lib/new_relic/agent/sampler.rb +1 -1
- data/lib/new_relic/agent/sampler_collection.rb +1 -1
- data/lib/new_relic/agent/samplers/cpu_sampler.rb +1 -1
- data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +1 -1
- data/lib/new_relic/agent/samplers/memory_sampler.rb +2 -2
- data/lib/new_relic/agent/samplers/object_sampler.rb +1 -1
- data/lib/new_relic/agent/samplers/vm_sampler.rb +1 -1
- data/lib/new_relic/agent/span_event_aggregator.rb +3 -5
- data/lib/new_relic/agent/span_event_primitive.rb +129 -65
- data/lib/new_relic/agent/sql_sampler.rb +12 -12
- data/lib/new_relic/agent/stats.rb +1 -1
- data/lib/new_relic/agent/stats_engine.rb +3 -3
- data/lib/new_relic/agent/stats_engine/gc_profiler.rb +2 -2
- data/lib/new_relic/agent/stats_engine/stats_hash.rb +1 -1
- data/lib/new_relic/agent/supported_versions.rb +3 -3
- data/lib/new_relic/agent/synthetics_event_aggregator.rb +1 -1
- data/lib/new_relic/agent/system_info.rb +18 -4
- data/lib/new_relic/agent/threading/agent_thread.rb +2 -2
- data/lib/new_relic/agent/threading/backtrace_node.rb +1 -1
- data/lib/new_relic/agent/threading/backtrace_service.rb +4 -4
- data/lib/new_relic/agent/threading/thread_profile.rb +10 -24
- data/lib/new_relic/agent/timestamp_sampled_buffer.rb +1 -1
- data/lib/new_relic/agent/tracer.rb +509 -0
- data/lib/new_relic/agent/transaction.rb +143 -171
- data/lib/new_relic/agent/transaction/abstract_segment.rb +33 -6
- data/lib/new_relic/agent/transaction/datastore_segment.rb +1 -3
- data/lib/new_relic/agent/transaction/distributed_tracer.rb +177 -0
- data/lib/new_relic/agent/transaction/distributed_tracing.rb +59 -149
- data/lib/new_relic/agent/transaction/external_request_segment.rb +32 -39
- data/lib/new_relic/agent/transaction/message_broker_segment.rb +5 -12
- data/lib/new_relic/agent/transaction/request_attributes.rb +1 -1
- data/lib/new_relic/agent/transaction/segment.rb +28 -2
- data/lib/new_relic/agent/transaction/slowest_sample_buffer.rb +1 -1
- data/lib/new_relic/agent/transaction/synthetics_sample_buffer.rb +1 -1
- data/lib/new_relic/agent/transaction/trace.rb +6 -13
- data/lib/new_relic/agent/transaction/trace_builder.rb +1 -2
- data/lib/new_relic/agent/transaction/trace_context.rb +168 -0
- data/lib/new_relic/agent/transaction/trace_node.rb +12 -8
- data/lib/new_relic/agent/transaction/tracing.rb +1 -100
- data/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +1 -1
- data/lib/new_relic/agent/transaction_error_primitive.rb +11 -16
- data/lib/new_relic/agent/transaction_event_aggregator.rb +1 -1
- data/lib/new_relic/agent/transaction_event_primitive.rb +29 -40
- data/lib/new_relic/agent/transaction_event_recorder.rb +4 -4
- data/lib/new_relic/agent/transaction_metrics.rb +1 -1
- data/lib/new_relic/agent/transaction_sampler.rb +2 -6
- data/lib/new_relic/agent/transaction_time_aggregator.rb +50 -26
- data/lib/new_relic/agent/utilization/aws.rb +1 -1
- data/lib/new_relic/agent/utilization/azure.rb +1 -1
- data/lib/new_relic/agent/utilization/gcp.rb +1 -1
- data/lib/new_relic/agent/utilization/pcf.rb +1 -1
- data/lib/new_relic/agent/utilization/vendor.rb +1 -1
- data/lib/new_relic/agent/utilization_data.rb +37 -2
- data/lib/new_relic/agent/vm.rb +1 -1
- data/lib/new_relic/agent/vm/jruby_vm.rb +1 -1
- data/lib/new_relic/agent/vm/monotonic_gc_profiler.rb +1 -1
- data/lib/new_relic/agent/vm/mri_vm.rb +7 -5
- data/lib/new_relic/agent/vm/snapshot.rb +1 -1
- data/lib/new_relic/agent/worker_loop.rb +1 -1
- data/lib/new_relic/cli/command.rb +1 -1
- data/lib/new_relic/cli/commands/deployments.rb +2 -3
- data/lib/new_relic/cli/commands/install.rb +4 -3
- data/lib/new_relic/coerce.rb +32 -7
- data/lib/new_relic/collection_helper.rb +1 -1
- data/lib/new_relic/constants.rb +42 -0
- data/lib/new_relic/control.rb +1 -1
- data/lib/new_relic/control/class_methods.rb +8 -2
- data/lib/new_relic/control/frameworks.rb +1 -1
- data/lib/new_relic/control/frameworks/external.rb +1 -1
- data/lib/new_relic/control/frameworks/merb.rb +1 -1
- data/lib/new_relic/control/frameworks/rails.rb +12 -10
- data/lib/new_relic/control/frameworks/rails3.rb +1 -1
- data/lib/new_relic/control/frameworks/rails4.rb +1 -1
- data/lib/new_relic/control/frameworks/{rails5.rb → rails_notifications.rb} +2 -2
- data/lib/new_relic/control/frameworks/ruby.rb +1 -1
- data/lib/new_relic/control/frameworks/sinatra.rb +1 -1
- data/lib/new_relic/control/instance_methods.rb +12 -2
- data/lib/new_relic/control/instrumentation.rb +1 -1
- data/lib/new_relic/control/server_methods.rb +1 -1
- data/lib/new_relic/delayed_job_injection.rb +1 -1
- data/lib/new_relic/dependency_detection.rb +124 -14
- data/lib/new_relic/environment_report.rb +2 -4
- data/lib/new_relic/helper.rb +1 -1
- data/lib/new_relic/language_support.rb +1 -1
- data/lib/new_relic/latest_changes.rb +4 -4
- data/lib/new_relic/local_environment.rb +1 -1
- data/lib/new_relic/metric_data.rb +1 -1
- data/lib/new_relic/metric_spec.rb +1 -1
- data/lib/new_relic/noticed_error.rb +38 -21
- data/lib/new_relic/rack.rb +1 -1
- data/lib/new_relic/rack/agent_hooks.rb +1 -1
- data/lib/new_relic/rack/agent_middleware.rb +2 -2
- data/lib/new_relic/rack/browser_monitoring.rb +16 -9
- data/lib/new_relic/recipes.rb +1 -1
- data/lib/new_relic/recipes/capistrano3.rb +1 -1
- data/lib/new_relic/recipes/capistrano_legacy.rb +1 -1
- data/lib/new_relic/supportability_helper.rb +16 -1
- data/lib/new_relic/version.rb +3 -3
- data/lib/newrelic_rpm.rb +1 -1
- data/lib/sequel/extensions/newrelic_instrumentation.rb +1 -1
- data/lib/sequel/plugins/newrelic_instrumentation.rb +1 -1
- data/lib/tasks/all.rb +1 -1
- data/lib/tasks/config.html.erb +14 -25
- data/lib/tasks/config.rake +9 -9
- data/lib/tasks/multiverse.rb +35 -1
- data/lib/tasks/newrelic.rb +1 -1
- data/lib/tasks/tests.rake +6 -1
- data/newrelic_rpm.gemspec +22 -17
- data/recipes/newrelic.rb +1 -1
- data/test/agent_helper.rb +358 -78
- metadata +151 -66
- data/.travis.yml +0 -201
- data/cert/cacert.pem +0 -1177
- data/lib/new_relic/agent/commands/xray_session.rb +0 -55
- data/lib/new_relic/agent/commands/xray_session_collection.rb +0 -161
- data/lib/new_relic/agent/cross_app_monitor.rb +0 -110
- data/lib/new_relic/agent/distributed_trace_monitor.rb +0 -41
- data/lib/new_relic/agent/http_clients/abstract_request.rb +0 -31
- data/lib/new_relic/agent/instrumentation/active_record_4.rb +0 -42
- data/lib/new_relic/agent/instrumentation/active_record_5.rb +0 -41
- data/lib/new_relic/agent/instrumentation/evented_subscriber.rb +0 -104
- data/lib/new_relic/agent/instrumentation/http.rb +0 -46
- data/lib/new_relic/agent/instrumentation/net.rb +0 -50
- data/lib/new_relic/agent/instrumentation/rails4/action_controller.rb +0 -32
- data/lib/new_relic/agent/instrumentation/rails5/action_view.rb +0 -27
- data/lib/new_relic/agent/transaction/attributes.rb +0 -154
- data/lib/new_relic/agent/transaction/xray_sample_buffer.rb +0 -64
- data/lib/new_relic/agent/transaction_state.rb +0 -186
- data/lib/new_relic/build.rb +0 -2
- data/lib/new_relic/metrics.rb +0 -13
- data/lib/tasks/versions.html.erb +0 -28
- data/lib/tasks/versions.postface.html +0 -8
- data/lib/tasks/versions.preface.html +0 -9
- data/lib/tasks/versions.rake +0 -65
- data/lib/tasks/versions.txt.erb +0 -14
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require_relative 'instrumentation'
|
7
|
+
|
8
|
+
module NewRelic::Agent::Instrumentation
|
9
|
+
module Curb
|
10
|
+
module Chain
|
11
|
+
def self.instrument!
|
12
|
+
Curl::Easy.class_eval do
|
13
|
+
include NewRelic::Agent::Instrumentation::Curb::Easy
|
14
|
+
|
15
|
+
def http_head_with_newrelic(*args, &blk)
|
16
|
+
http_head_with_tracing { http_head_without_newrelic(*args, &blk) }
|
17
|
+
end
|
18
|
+
|
19
|
+
alias_method :http_head_without_newrelic, :http_head
|
20
|
+
alias_method :http_head, :http_head_with_newrelic
|
21
|
+
|
22
|
+
def http_post_with_newrelic(*args, &blk)
|
23
|
+
http_post_with_tracing { http_post_without_newrelic(*args, &blk) }
|
24
|
+
end
|
25
|
+
|
26
|
+
alias_method :http_post_without_newrelic, :http_post
|
27
|
+
alias_method :http_post, :http_post_with_newrelic
|
28
|
+
|
29
|
+
def http_put_with_newrelic(*args, &blk)
|
30
|
+
http_put_with_tracing { http_put_without_newrelic(*args, &blk) }
|
31
|
+
end
|
32
|
+
|
33
|
+
alias_method :http_put_without_newrelic, :http_put
|
34
|
+
alias_method :http_put, :http_put_with_newrelic
|
35
|
+
|
36
|
+
# Hook the #http method to set the verb.
|
37
|
+
def http_with_newrelic verb
|
38
|
+
http_with_tracing(verb) { http_without_newrelic( verb ) }
|
39
|
+
end
|
40
|
+
|
41
|
+
alias_method :http_without_newrelic, :http
|
42
|
+
alias_method :http, :http_with_newrelic
|
43
|
+
|
44
|
+
# Hook the #perform method to mark the request as non-parallel.
|
45
|
+
def perform_with_newrelic
|
46
|
+
perform_with_tracing { perform_without_newrelic }
|
47
|
+
end
|
48
|
+
|
49
|
+
alias_method :perform_without_newrelic, :perform
|
50
|
+
alias_method :perform, :perform_with_newrelic
|
51
|
+
|
52
|
+
# Record the HTTP verb for future #perform calls
|
53
|
+
def method_with_newrelic verb
|
54
|
+
method_with_tracing { method_without_newrelic(verb) }
|
55
|
+
end
|
56
|
+
|
57
|
+
alias_method :method_without_newrelic, :method
|
58
|
+
alias_method :method, :method_with_newrelic
|
59
|
+
|
60
|
+
# We override this method in order to ensure access to header_str even
|
61
|
+
# though we use an on_header callback
|
62
|
+
def header_str_with_newrelic
|
63
|
+
header_str_with_tracing { header_str_without_newrelic }
|
64
|
+
end
|
65
|
+
|
66
|
+
alias_method :header_str_without_newrelic, :header_str
|
67
|
+
alias_method :header_str, :header_str_with_newrelic
|
68
|
+
end
|
69
|
+
|
70
|
+
Curl::Multi.class_eval do
|
71
|
+
include NewRelic::Agent::Instrumentation::Curb::Multi
|
72
|
+
|
73
|
+
# Add CAT with callbacks if the request is serial
|
74
|
+
def add_with_newrelic(curl)
|
75
|
+
add_with_tracing(curl) { add_without_newrelic curl }
|
76
|
+
end
|
77
|
+
|
78
|
+
alias_method :add_without_newrelic, :add
|
79
|
+
alias_method :add, :add_with_newrelic
|
80
|
+
|
81
|
+
# Trace as an External/Multiple call if the first request isn't serial.
|
82
|
+
def perform_with_newrelic(&blk)
|
83
|
+
perform_with_tracing { perform_without_newrelic(&blk) }
|
84
|
+
end
|
85
|
+
|
86
|
+
alias_method :perform_without_newrelic, :perform
|
87
|
+
alias_method :perform, :perform_with_newrelic
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,222 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module NewRelic
|
7
|
+
module Agent
|
8
|
+
module Instrumentation
|
9
|
+
module Curb
|
10
|
+
module Easy
|
11
|
+
attr_accessor :_nr_instrumented,
|
12
|
+
:_nr_failure_instrumented,
|
13
|
+
:_nr_http_verb,
|
14
|
+
:_nr_header_str,
|
15
|
+
:_nr_original_on_header,
|
16
|
+
:_nr_original_on_complete,
|
17
|
+
:_nr_original_on_failure,
|
18
|
+
:_nr_serial
|
19
|
+
|
20
|
+
# We have to hook these three methods separately, as they don't use
|
21
|
+
# Curl::Easy#http
|
22
|
+
def http_head_with_tracing
|
23
|
+
self._nr_http_verb = :HEAD
|
24
|
+
yield
|
25
|
+
end
|
26
|
+
|
27
|
+
def http_post_with_tracing
|
28
|
+
self._nr_http_verb = :POST
|
29
|
+
yield
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
def http_put_with_tracing
|
34
|
+
self._nr_http_verb = :PUT
|
35
|
+
yield
|
36
|
+
end
|
37
|
+
|
38
|
+
# Hook the #http method to set the verb.
|
39
|
+
def http_with_tracing verb
|
40
|
+
self._nr_http_verb = verb.to_s.upcase
|
41
|
+
yield
|
42
|
+
end
|
43
|
+
|
44
|
+
# Hook the #perform method to mark the request as non-parallel.
|
45
|
+
def perform_with_tracing
|
46
|
+
self._nr_http_verb ||= :GET
|
47
|
+
self._nr_serial = true
|
48
|
+
yield
|
49
|
+
end
|
50
|
+
|
51
|
+
# Record the HTTP verb for future #perform calls
|
52
|
+
def method_with_tracing verb
|
53
|
+
self._nr_http_verb = verb.upcase
|
54
|
+
yield
|
55
|
+
end
|
56
|
+
|
57
|
+
# We override this method in order to ensure access to header_str even
|
58
|
+
# though we use an on_header callback
|
59
|
+
def header_str_with_tracing
|
60
|
+
if self._nr_serial
|
61
|
+
self._nr_header_str
|
62
|
+
else
|
63
|
+
# Since we didn't install a header callback for a non-serial request,
|
64
|
+
# just fall back to the original implementation.
|
65
|
+
yield
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
####################################################
|
71
|
+
|
72
|
+
module Multi
|
73
|
+
include NewRelic::Agent::MethodTracer
|
74
|
+
|
75
|
+
# Add CAT with callbacks if the request is serial
|
76
|
+
def add_with_tracing(curl)
|
77
|
+
if curl.respond_to?(:_nr_serial) && curl._nr_serial
|
78
|
+
hook_pending_request(curl) if NewRelic::Agent::Tracer.tracing_enabled?
|
79
|
+
end
|
80
|
+
|
81
|
+
return yield
|
82
|
+
end
|
83
|
+
|
84
|
+
# Trace as an External/Multiple call if the first request isn't serial.
|
85
|
+
def perform_with_tracing
|
86
|
+
return yield if first_request_is_serial?
|
87
|
+
|
88
|
+
trace_execution_scoped("External/Multiple/Curb::Multi/perform") do
|
89
|
+
yield
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Instrument the specified +request+ (a Curl::Easy object)
|
94
|
+
# and set up cross-application tracing if it's enabled.
|
95
|
+
def hook_pending_request(request)
|
96
|
+
wrapped_request, wrapped_response = wrap_request(request)
|
97
|
+
|
98
|
+
segment = NewRelic::Agent::Tracer.start_external_request_segment(
|
99
|
+
library: wrapped_request.type,
|
100
|
+
uri: wrapped_request.uri,
|
101
|
+
procedure: wrapped_request.method
|
102
|
+
)
|
103
|
+
|
104
|
+
segment.add_request_headers wrapped_request
|
105
|
+
|
106
|
+
# install all callbacks
|
107
|
+
unless request._nr_instrumented
|
108
|
+
install_header_callback(request, wrapped_response)
|
109
|
+
install_completion_callback(request, wrapped_response, segment)
|
110
|
+
install_failure_callback(request, wrapped_response, segment)
|
111
|
+
request._nr_instrumented = true
|
112
|
+
end
|
113
|
+
rescue => err
|
114
|
+
NewRelic::Agent.logger.error("Untrapped exception", err)
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
# Create request and response adapter objects for the specified +request+
|
119
|
+
# NOTE: Although strange to wrap request and response at once, it works
|
120
|
+
# because curb's callback mechanism updates the instantiated wrappers
|
121
|
+
# during the life-cycle of external request
|
122
|
+
def wrap_request(request)
|
123
|
+
return NewRelic::Agent::HTTPClients::CurbRequest.new(request),
|
124
|
+
NewRelic::Agent::HTTPClients::CurbResponse.new(request)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Install a callback that will record the response headers
|
128
|
+
# to enable CAT linking
|
129
|
+
def install_header_callback(request, wrapped_response)
|
130
|
+
original_callback = request.on_header
|
131
|
+
request._nr_original_on_header = original_callback
|
132
|
+
request._nr_header_str = nil
|
133
|
+
request.on_header do |header_data|
|
134
|
+
if original_callback
|
135
|
+
original_callback.call header_data
|
136
|
+
else
|
137
|
+
wrapped_response.append_header_data header_data
|
138
|
+
header_data.length
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Install a callback that will finish the trace.
|
144
|
+
def install_completion_callback(request, wrapped_response, segment)
|
145
|
+
original_callback = request.on_complete
|
146
|
+
request._nr_original_on_complete = original_callback
|
147
|
+
request.on_complete do |finished_request|
|
148
|
+
begin
|
149
|
+
segment.process_response_headers wrapped_response
|
150
|
+
ensure
|
151
|
+
segment.finish if segment
|
152
|
+
# Make sure the existing completion callback is run, and restore the
|
153
|
+
# on_complete callback to how it was before.
|
154
|
+
original_callback.call(finished_request) if original_callback
|
155
|
+
remove_instrumentation_callbacks(request)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Install a callback that will fire on failures
|
161
|
+
# NOTE: on_failure is not always called, so we're not always
|
162
|
+
# unhooking the callback. No harm/no foul in production, but
|
163
|
+
# definitely something to beware of if debugging callback issues
|
164
|
+
# _nr_failure_instrumented exists to prevent infinitely chaining
|
165
|
+
# our on_failure callback hook.
|
166
|
+
def install_failure_callback(request, wrapped_response, segment)
|
167
|
+
return if request._nr_failure_instrumented
|
168
|
+
original_callback = request.on_failure
|
169
|
+
request._nr_original_on_failure = original_callback
|
170
|
+
request.on_failure do |failed_request, error|
|
171
|
+
begin
|
172
|
+
if segment
|
173
|
+
noticible_error = NewRelic::Agent::NoticibleError.new error[0].name, error[-1]
|
174
|
+
segment.notice_error noticible_error
|
175
|
+
end
|
176
|
+
ensure
|
177
|
+
original_callback.call(failed_request, error) if original_callback
|
178
|
+
remove_failure_callback(failed_request)
|
179
|
+
end
|
180
|
+
request._nr_failure_instrumented = true
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# on_failure callbacks cannot be removed in the on_complete
|
185
|
+
# callback where this method is invoked because on_complete
|
186
|
+
# fires before the on_failure!
|
187
|
+
def remove_instrumentation_callbacks(request)
|
188
|
+
request.on_complete(&request._nr_original_on_complete)
|
189
|
+
request.on_header(&request._nr_original_on_header)
|
190
|
+
request._nr_instrumented = false
|
191
|
+
end
|
192
|
+
|
193
|
+
# We execute customer's on_failure callback (if any) and
|
194
|
+
# uninstall our hook here since the on_complete callback
|
195
|
+
# fires before the on_failure callback.
|
196
|
+
def remove_failure_callback(request)
|
197
|
+
request.on_failure(&request._nr_original_on_failure)
|
198
|
+
request._nr_failure_instrumented = false
|
199
|
+
end
|
200
|
+
|
201
|
+
private
|
202
|
+
|
203
|
+
def first_request_is_serial?
|
204
|
+
return false unless (first = self.requests.first)
|
205
|
+
|
206
|
+
# Before curb 0.9.8, requests was an array of Curl::Easy
|
207
|
+
# instances. Starting with 0.9.8, it's a Hash where the
|
208
|
+
# values are Curl::Easy instances.
|
209
|
+
#
|
210
|
+
# So, requests.first will either be an_obj or [a_key, an_obj].
|
211
|
+
# We need to handle either case.
|
212
|
+
#
|
213
|
+
first = first[-1] if first.is_a?(Array)
|
214
|
+
|
215
|
+
first.respond_to?(:_nr_serial) && first._nr_serial
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require_relative 'instrumentation'
|
7
|
+
|
8
|
+
module NewRelic
|
9
|
+
module Agent
|
10
|
+
module Instrumentation
|
11
|
+
module Curb
|
12
|
+
module Easy
|
13
|
+
module Prepend
|
14
|
+
include NewRelic::Agent::Instrumentation::Curb::Easy
|
15
|
+
|
16
|
+
def http_head(*args, &blk)
|
17
|
+
http_head_with_tracing { super }
|
18
|
+
end
|
19
|
+
|
20
|
+
def http_post(*args, &blk)
|
21
|
+
http_post_with_tracing { super }
|
22
|
+
end
|
23
|
+
|
24
|
+
def http_put(*args, &blk)
|
25
|
+
http_put_with_tracing { super }
|
26
|
+
end
|
27
|
+
|
28
|
+
def http verb
|
29
|
+
http_with_tracing(verb) { super }
|
30
|
+
end
|
31
|
+
|
32
|
+
def perform
|
33
|
+
perform_with_tracing { super }
|
34
|
+
end
|
35
|
+
|
36
|
+
def method verb
|
37
|
+
method_with_tracing { super }
|
38
|
+
end
|
39
|
+
|
40
|
+
def header_str
|
41
|
+
header_str_with_tracing { super }
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Multi
|
47
|
+
module Prepend
|
48
|
+
include NewRelic::Agent::Instrumentation::Curb::Multi
|
49
|
+
|
50
|
+
def add(curl)
|
51
|
+
add_with_tracing(curl) { super }
|
52
|
+
end
|
53
|
+
|
54
|
+
def perform(&blk)
|
55
|
+
perform_with_tracing { super }
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# This file is distributed under New Relic's license terms.
|
3
|
-
# See https://github.com/newrelic/
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
4
|
|
5
5
|
DependencyDetection.defer do
|
6
6
|
named :data_mapper
|
@@ -140,7 +140,9 @@ module NewRelic
|
|
140
140
|
)
|
141
141
|
|
142
142
|
begin
|
143
|
-
|
143
|
+
NewRelic::Agent::Tracer.capture_segment_error segment do
|
144
|
+
self.send("#{method_name}_without_newrelic", *args, &blk)
|
145
|
+
end
|
144
146
|
rescue ::DataObjects::ConnectionError => e
|
145
147
|
raise
|
146
148
|
rescue ::DataObjects::SQLError => e
|
@@ -185,7 +187,7 @@ module NewRelic
|
|
185
187
|
# hooked with tracers, ensuring that notice_sql attaches this SQL to
|
186
188
|
# the proper call scope.
|
187
189
|
def log(msg) #THREAD_LOCAL_ACCESS
|
188
|
-
state = NewRelic::Agent::
|
190
|
+
state = NewRelic::Agent::Tracer.state
|
189
191
|
return unless state.is_execution_traced?
|
190
192
|
|
191
193
|
txn = state.current_transaction
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
|
+
# frozen_string_literal: true
|
5
|
+
require_relative 'instrumentation'
|
6
|
+
|
7
|
+
module NewRelic::Agent::Instrumentation
|
8
|
+
module DelayedJob
|
9
|
+
module Chain
|
10
|
+
def self.instrument!
|
11
|
+
Delayed::Worker.class_eval do
|
12
|
+
include NewRelic::Agent::Instrumentation::DelayedJob
|
13
|
+
|
14
|
+
def initialize_with_new_relic(*args)
|
15
|
+
initialize_with_tracing { initialize_without_new_relic(*args) }
|
16
|
+
end
|
17
|
+
|
18
|
+
alias initialize_without_new_relic initialize
|
19
|
+
alias initialize initialize_with_new_relic
|
20
|
+
|
21
|
+
|
22
|
+
def install_newrelic_job_tracer
|
23
|
+
Delayed::Job.class_eval do
|
24
|
+
include NewRelic::Agent::Instrumentation::DelayedJobTracer
|
25
|
+
|
26
|
+
alias_method :invoke_job_without_new_relic, :invoke_job
|
27
|
+
|
28
|
+
def invoke_job(*args, &block)
|
29
|
+
invoke_job_with_tracing { invoke_job_without_new_relic(*args, &block) }
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module NewRelic
|
8
|
+
module Agent
|
9
|
+
module Instrumentation
|
10
|
+
module DelayedJob
|
11
|
+
|
12
|
+
def initialize_with_tracing
|
13
|
+
yield
|
14
|
+
worker_name = case
|
15
|
+
when self.respond_to?(:name) then self.name
|
16
|
+
when self.class.respond_to?(:default_name) then self.class.default_name
|
17
|
+
end
|
18
|
+
NewRelic::DelayedJobInjection.worker_name = worker_name
|
19
|
+
|
20
|
+
if defined?(::Delayed::Job) && ::Delayed::Job.method_defined?(:invoke_job) &&
|
21
|
+
!(::Delayed::Job.method_defined?(:invoke_job_without_new_relic) )
|
22
|
+
|
23
|
+
::NewRelic::Agent.logger.info 'Installing DelayedJob instrumentation [part 2/2]'
|
24
|
+
install_newrelic_job_tracer
|
25
|
+
NewRelic::Control.instance.init_plugin :dispatcher => :delayed_job
|
26
|
+
else
|
27
|
+
NewRelic::Agent.logger.warn("Did not find a Delayed::Job class responding to invoke_job, aborting DJ instrumentation")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
module DelayedJobTracer
|
34
|
+
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
35
|
+
|
36
|
+
NR_TRANSACTION_CATEGORY = 'OtherTransaction/DelayedJob'.freeze
|
37
|
+
|
38
|
+
def invoke_job_with_tracing
|
39
|
+
options = {
|
40
|
+
:category => NR_TRANSACTION_CATEGORY,
|
41
|
+
:path => ::NewRelic::Agent::Instrumentation::DelayedJob::Naming.name_from_payload(payload_object)
|
42
|
+
}
|
43
|
+
|
44
|
+
perform_action_with_newrelic_trace(options) do
|
45
|
+
yield
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|