oneapm_rpm 1.1.0
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 +30 -0
- data/.rubocop.yml +725 -0
- data/Gemfile +3 -0
- data/Guardfile +7 -0
- data/LICENSE +1 -0
- data/README.md +3 -0
- data/config/cert/cacert.pem +1177 -0
- data/config/database.yml +5 -0
- data/lib/initializers/goliath.rb +11 -0
- data/lib/initializers/other.rb +1 -0
- data/lib/initializers/rails.rb +15 -0
- data/lib/one_apm/agent.rb +253 -0
- data/lib/one_apm/agent/agent.rb +283 -0
- data/lib/one_apm/agent/agent/connect.rb +175 -0
- data/lib/one_apm/agent/agent/container_data_manager.rb +218 -0
- data/lib/one_apm/agent/agent/forkable_dispatcher_functions.rb +96 -0
- data/lib/one_apm/agent/agent/helpers.rb +45 -0
- data/lib/one_apm/agent/agent/start.rb +226 -0
- data/lib/one_apm/agent/agent/start_worker_thread.rb +148 -0
- data/lib/one_apm/agent/busy_calculator.rb +115 -0
- data/lib/one_apm/agent/cross_app/cross_app_monitor.rb +181 -0
- data/lib/one_apm/agent/cross_app/cross_app_tracing.rb +336 -0
- data/lib/one_apm/agent/database.rb +308 -0
- data/lib/one_apm/agent/database/active_record_helper.rb +80 -0
- data/lib/one_apm/agent/database/obfuscation_helpers.rb +76 -0
- data/lib/one_apm/agent/database/obfuscator.rb +78 -0
- data/lib/one_apm/agent/database/postgres_explain_obfuscator.rb +45 -0
- data/lib/one_apm/agent/datastores.rb +175 -0
- data/lib/one_apm/agent/datastores/metric_helper.rb +83 -0
- data/lib/one_apm/agent/datastores/mongo.rb +27 -0
- data/lib/one_apm/agent/datastores/mongo/metric_translator.rb +189 -0
- data/lib/one_apm/agent/datastores/mongo/obfuscator.rb +37 -0
- data/lib/one_apm/agent/datastores/mongo/statement_formatter.rb +51 -0
- data/lib/one_apm/agent/event/event_listener.rb +40 -0
- data/lib/one_apm/agent/event/event_loop.rb +191 -0
- data/lib/one_apm/agent/event/worker_loop.rb +97 -0
- data/lib/one_apm/agent/harvester.rb +48 -0
- data/lib/one_apm/agent/inbound_request_monitor.rb +30 -0
- data/lib/one_apm/agent/javascript_instrumentor.rb +186 -0
- data/lib/one_apm/agent/pipe/pipe_channel_manager.rb +275 -0
- data/lib/one_apm/agent/pipe/pipe_service.rb +81 -0
- data/lib/one_apm/agent/sampler.rb +55 -0
- data/lib/one_apm/agent/sampler_collection.rb +65 -0
- data/lib/one_apm/agent/samplers/cpu_sampler.rb +49 -0
- data/lib/one_apm/agent/samplers/delayed_job_sampler.rb +109 -0
- data/lib/one_apm/agent/samplers/memory_sampler.rb +144 -0
- data/lib/one_apm/agent/samplers/object_sampler.rb +22 -0
- data/lib/one_apm/agent/samplers/vm_sampler.rb +124 -0
- data/lib/one_apm/agent/synthetics_monitor.rb +48 -0
- data/lib/one_apm/agent/threading/agent_thread.rb +74 -0
- data/lib/one_apm/agent/threading/backtrace_node.rb +133 -0
- data/lib/one_apm/agent/threading/backtrace_service.rb +259 -0
- data/lib/one_apm/agent/threading/thread_profile.rb +155 -0
- data/lib/one_apm/collector/collector/helper.rb +139 -0
- data/lib/one_apm/collector/collector/http_connection.rb +254 -0
- data/lib/one_apm/collector/collector/server_methods.rb +71 -0
- data/lib/one_apm/collector/collector_service.rb +123 -0
- data/lib/one_apm/collector/commands/agent_command.rb +17 -0
- data/lib/one_apm/collector/commands/thread_profiler_session.rb +108 -0
- data/lib/one_apm/collector/commands/xray_session.rb +53 -0
- data/lib/one_apm/collector/commands/xray_session_collection.rb +156 -0
- data/lib/one_apm/collector/containers/agent_command_router.rb +153 -0
- data/lib/one_apm/collector/containers/custom_event_aggregator.rb +94 -0
- data/lib/one_apm/collector/containers/error_collector.rb +349 -0
- data/lib/one_apm/collector/containers/sql_sampler.rb +331 -0
- data/lib/one_apm/collector/containers/stats_engine.rb +34 -0
- data/lib/one_apm/collector/containers/transaction_event_aggregator.rb +249 -0
- data/lib/one_apm/collector/containers/transaction_sampler.rb +352 -0
- data/lib/one_apm/collector/containers/utilization_data.rb +36 -0
- data/lib/one_apm/collector/stats_engine/gc_profiler.rb +106 -0
- data/lib/one_apm/collector/stats_engine/metric_stats.rb +243 -0
- data/lib/one_apm/collector/stats_engine/stats_hash.rb +105 -0
- data/lib/one_apm/configuration.rb +429 -0
- data/lib/one_apm/configuration/autostart.rb +41 -0
- data/lib/one_apm/configuration/default_source.rb +1026 -0
- data/lib/one_apm/configuration/environment_source.rb +113 -0
- data/lib/one_apm/configuration/high_security_source.rb +56 -0
- data/lib/one_apm/configuration/manual_source.rb +13 -0
- data/lib/one_apm/configuration/server_source.rb +60 -0
- data/lib/one_apm/configuration/yaml_source.rb +134 -0
- data/lib/one_apm/errors/agent_errors.rb +26 -0
- data/lib/one_apm/errors/internal_agent_error.rb +16 -0
- data/lib/one_apm/errors/noticed_error.rb +79 -0
- data/lib/one_apm/frameworks/external.rb +15 -0
- data/lib/one_apm/frameworks/rails.rb +103 -0
- data/lib/one_apm/frameworks/rails3.rb +37 -0
- data/lib/one_apm/frameworks/rails4.rb +21 -0
- data/lib/one_apm/frameworks/ruby.rb +21 -0
- data/lib/one_apm/frameworks/sinatra.rb +12 -0
- data/lib/one_apm/inst/3rd/active_merchant.rb +35 -0
- data/lib/one_apm/inst/3rd/acts_as_solr.rb +70 -0
- data/lib/one_apm/inst/3rd/authlogic.rb +23 -0
- data/lib/one_apm/inst/3rd/sunspot.rb +31 -0
- data/lib/one_apm/inst/background_job/active_job.rb +88 -0
- data/lib/one_apm/inst/background_job/delayed_job.rb +52 -0
- data/lib/one_apm/inst/background_job/delayed_job_injection.rb +8 -0
- data/lib/one_apm/inst/background_job/resque.rb +107 -0
- data/lib/one_apm/inst/background_job/sidekiq.rb +64 -0
- data/lib/one_apm/inst/dispatcher/passenger.rb +25 -0
- data/lib/one_apm/inst/dispatcher/rainbows.rb +23 -0
- data/lib/one_apm/inst/framework/grape.rb +94 -0
- data/lib/one_apm/inst/framework/padrino.rb +30 -0
- data/lib/one_apm/inst/framework/sinatra.rb +185 -0
- data/lib/one_apm/inst/framework/sinatra/ignorer.rb +50 -0
- data/lib/one_apm/inst/framework/sinatra/transaction_namer.rb +54 -0
- data/lib/one_apm/inst/http_clients/curb.rb +189 -0
- data/lib/one_apm/inst/http_clients/excon.rb +70 -0
- data/lib/one_apm/inst/http_clients/excon/connection.rb +31 -0
- data/lib/one_apm/inst/http_clients/excon/middleware.rb +55 -0
- data/lib/one_apm/inst/http_clients/httpclient.rb +44 -0
- data/lib/one_apm/inst/http_clients/net.rb +34 -0
- data/lib/one_apm/inst/http_clients/typhoeus.rb +76 -0
- data/lib/one_apm/inst/nosql/memcache.rb +134 -0
- data/lib/one_apm/inst/nosql/mongo.rb +126 -0
- data/lib/one_apm/inst/nosql/mongo_moped.rb +85 -0
- data/lib/one_apm/inst/nosql/redis.rb +83 -0
- data/lib/one_apm/inst/orm/active_record.rb +99 -0
- data/lib/one_apm/inst/orm/active_record_4.rb +28 -0
- data/lib/one_apm/inst/orm/data_mapper.rb +180 -0
- data/lib/one_apm/inst/orm/sequel.rb +47 -0
- data/lib/one_apm/inst/rack.rb +38 -0
- data/lib/one_apm/inst/rack/rack.rb +44 -0
- data/lib/one_apm/inst/rack/rack_builder.rb +51 -0
- data/lib/one_apm/inst/rails/action_controller.rb +118 -0
- data/lib/one_apm/inst/rails/action_web_service.rb +44 -0
- data/lib/one_apm/inst/rails/errors.rb +43 -0
- data/lib/one_apm/inst/rails3/action_controller.rb +172 -0
- data/lib/one_apm/inst/rails3/errors.rb +43 -0
- data/lib/one_apm/inst/rails4/action_controller.rb +27 -0
- data/lib/one_apm/inst/rails4/action_controller_subscriber.rb +121 -0
- data/lib/one_apm/inst/rails4/action_view.rb +23 -0
- data/lib/one_apm/inst/rails4/action_view_subscriber.rb +93 -0
- data/lib/one_apm/inst/rails4/active_record_subscriber.rb +96 -0
- data/lib/one_apm/inst/rails4/errors.rb +42 -0
- data/lib/one_apm/inst/rails_middleware.rb +40 -0
- data/lib/one_apm/inst/support/evented_subscriber.rb +98 -0
- data/lib/one_apm/inst/support/ignore_actions.rb +39 -0
- data/lib/one_apm/inst/support/queue_time.rb +76 -0
- data/lib/one_apm/inst/transaction_base.rb +405 -0
- data/lib/one_apm/logger/agent_logger.rb +206 -0
- data/lib/one_apm/logger/audit_logger.rb +78 -0
- data/lib/one_apm/logger/memory_logger.rb +50 -0
- data/lib/one_apm/logger/null_logger.rb +19 -0
- data/lib/one_apm/metrics/metric_data.rb +72 -0
- data/lib/one_apm/metrics/metric_spec.rb +82 -0
- data/lib/one_apm/metrics/stats.rb +173 -0
- data/lib/one_apm/probe.rb +16 -0
- data/lib/one_apm/probe/framework_loader.rb +53 -0
- data/lib/one_apm/probe/instance_methods.rb +105 -0
- data/lib/one_apm/probe/instrumentation.rb +60 -0
- data/lib/one_apm/rack/browser_monitoring.rb +144 -0
- data/lib/one_apm/rack/middleware_base.rb +27 -0
- data/lib/one_apm/rack/middleware_hooks.rb +17 -0
- data/lib/one_apm/rack/middleware_tracing.rb +81 -0
- data/lib/one_apm/rack/middleware_wrapper.rb +86 -0
- data/lib/one_apm/support/chained_call.rb +15 -0
- data/lib/one_apm/support/coerce.rb +81 -0
- data/lib/one_apm/support/collection_helper.rb +79 -0
- data/lib/one_apm/support/dotted_hash.rb +45 -0
- data/lib/one_apm/support/encoders.rb +34 -0
- data/lib/one_apm/support/environment_report.rb +127 -0
- data/lib/one_apm/support/event_buffer.rb +82 -0
- data/lib/one_apm/support/event_buffer/sampled_buffer.rb +45 -0
- data/lib/one_apm/support/event_buffer/sized_buffer.rb +21 -0
- data/lib/one_apm/support/event_buffer/synthetics_event_buffer.rb +40 -0
- data/lib/one_apm/support/helper.rb +49 -0
- data/lib/one_apm/support/hostname.rb +13 -0
- data/lib/one_apm/support/http_clients/curb_wrappers.rb +65 -0
- data/lib/one_apm/support/http_clients/excon_wrappers.rb +63 -0
- data/lib/one_apm/support/http_clients/httpclient_wrappers.rb +61 -0
- data/lib/one_apm/support/http_clients/net_http_wrappers.rb +48 -0
- data/lib/one_apm/support/http_clients/typhoeus_wrappers.rb +73 -0
- data/lib/one_apm/support/http_clients/uri_util.rb +39 -0
- data/lib/one_apm/support/json_marshaller.rb +68 -0
- data/lib/one_apm/support/json_wrapper.rb +130 -0
- data/lib/one_apm/support/language_support.rb +142 -0
- data/lib/one_apm/support/library_detection.rb +119 -0
- data/lib/one_apm/support/local_environment.rb +196 -0
- data/lib/one_apm/support/marshaller.rb +62 -0
- data/lib/one_apm/support/method_tracer.rb +334 -0
- data/lib/one_apm/support/method_tracer/helpers.rb +92 -0
- data/lib/one_apm/support/method_tracer/traced_method_stack.rb +103 -0
- data/lib/one_apm/support/obfuscator.rb +47 -0
- data/lib/one_apm/support/okjson.rb +601 -0
- data/lib/one_apm/support/parameter_filtering.rb +35 -0
- data/lib/one_apm/support/rules_engine.rb +56 -0
- data/lib/one_apm/support/rules_engine/replacement_rule.rb +80 -0
- data/lib/one_apm/support/rules_engine/segment_terms_rule.rb +46 -0
- data/lib/one_apm/support/server.rb +11 -0
- data/lib/one_apm/support/supported_versions.rb +257 -0
- data/lib/one_apm/support/system_info.rb +211 -0
- data/lib/one_apm/support/timer_lib.rb +29 -0
- data/lib/one_apm/support/version_number.rb +51 -0
- data/lib/one_apm/support/vm.rb +30 -0
- data/lib/one_apm/support/vm/jruby_vm.rb +38 -0
- data/lib/one_apm/support/vm/monotonic_gc_profiler.rb +43 -0
- data/lib/one_apm/support/vm/mri_vm.rb +85 -0
- data/lib/one_apm/support/vm/rubinius_vm.rb +129 -0
- data/lib/one_apm/support/vm/snapshot.rb +18 -0
- data/lib/one_apm/transaction.rb +336 -0
- data/lib/one_apm/transaction/class_methods.rb +132 -0
- data/lib/one_apm/transaction/instance_helpers.rb +82 -0
- data/lib/one_apm/transaction/metric_constants.rb +42 -0
- data/lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb +21 -0
- data/lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb +21 -0
- data/lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb +21 -0
- data/lib/one_apm/transaction/sample_buffer/transaction_sample_buffer.rb +101 -0
- data/lib/one_apm/transaction/sample_buffer/xray_sample_buffer.rb +60 -0
- data/lib/one_apm/transaction/segment.rb +193 -0
- data/lib/one_apm/transaction/segment_summary.rb +51 -0
- data/lib/one_apm/transaction/thread_local_access.rb +73 -0
- data/lib/one_apm/transaction/transaction_analysis.rb +78 -0
- data/lib/one_apm/transaction/transaction_apdex.rb +20 -0
- data/lib/one_apm/transaction/transaction_cpu.rb +22 -0
- data/lib/one_apm/transaction/transaction_finish_append.rb +67 -0
- data/lib/one_apm/transaction/transaction_ignore.rb +33 -0
- data/lib/one_apm/transaction/transaction_jruby_functions.rb +40 -0
- data/lib/one_apm/transaction/transaction_metrics.rb +53 -0
- data/lib/one_apm/transaction/transaction_name.rb +90 -0
- data/lib/one_apm/transaction/transaction_namer.rb +49 -0
- data/lib/one_apm/transaction/transaction_sample.rb +204 -0
- data/lib/one_apm/transaction/transaction_sample_builder.rb +168 -0
- data/lib/one_apm/transaction/transaction_state.rb +149 -0
- data/lib/one_apm/transaction/transaction_summary.rb +28 -0
- data/lib/one_apm/transaction/transaction_synthetics.rb +40 -0
- data/lib/one_apm/transaction/transaction_timings.rb +54 -0
- data/lib/one_apm/version.rb +13 -0
- data/lib/oneapm_rpm.rb +16 -0
- data/lib/sequel/extensions/oneapm_instrumentation.rb +84 -0
- data/lib/sequel/plugins/oneapm_instrumentation.rb +66 -0
- data/oneapm.yml +135 -0
- data/oneapm_rpm.gemspec +58 -0
- metadata +474 -0
data/lib/oneapm_rpm.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
#
|
4
|
+
# OneApm Initialization
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'one_apm/version'
|
8
|
+
require 'one_apm/probe'
|
9
|
+
|
10
|
+
if defined?(::Rails) && defined?(::Rails::VERSION)
|
11
|
+
require 'initializers/rails'
|
12
|
+
elsif defined?(::Goliath) && defined?(::Goliath::Application)
|
13
|
+
require 'initializers/goliath'
|
14
|
+
else
|
15
|
+
require 'initializers/other'
|
16
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'sequel' unless defined?( Sequel )
|
4
|
+
require 'oneapm_rpm' unless defined?( OneApm )
|
5
|
+
require 'one_apm/agent/database/active_record_helper'
|
6
|
+
|
7
|
+
module Sequel
|
8
|
+
module OneApmInstrumentation
|
9
|
+
include OneApm::Support::MethodTracer,
|
10
|
+
OneApm::Agent::Instrumentation::ActiveRecordHelper
|
11
|
+
|
12
|
+
# Instrument all queries that go through #execute_query.
|
13
|
+
def log_yield(sql, args=nil) #THREAD_LOCAL_ACCESS
|
14
|
+
state = OneApm::TransactionState.tl_get
|
15
|
+
return super unless state.is_execution_traced?
|
16
|
+
|
17
|
+
t0 = Time.now
|
18
|
+
rval = super
|
19
|
+
t1 = Time.now
|
20
|
+
|
21
|
+
begin
|
22
|
+
duration = t1 - t0
|
23
|
+
record_metrics(sql, args, duration)
|
24
|
+
notice_sql(state, sql, args, t0, t1)
|
25
|
+
rescue => err
|
26
|
+
OneApm::Agent.logger.debug "while recording metrics for Sequel", err
|
27
|
+
end
|
28
|
+
|
29
|
+
return rval
|
30
|
+
end
|
31
|
+
|
32
|
+
# Record metrics for the specified +sql+ and +args+ using the specified
|
33
|
+
# +duration+.
|
34
|
+
def record_metrics(sql, args, duration) #THREAD_LOCAL_ACCESS
|
35
|
+
primary_metric = primary_metric_for(sql, args)
|
36
|
+
engine = OneApm::Agent.instance.stats_engine
|
37
|
+
|
38
|
+
metrics = rollup_metrics_for(primary_metric)
|
39
|
+
metrics << remote_service_metric(*self.opts.values_at(:adapter, :host)) if self.opts.key?(:adapter)
|
40
|
+
|
41
|
+
engine.tl_record_scoped_and_unscoped_metrics(primary_metric, metrics, duration)
|
42
|
+
end
|
43
|
+
|
44
|
+
THREAD_SAFE_CONNECTION_POOL_CLASSES = [
|
45
|
+
(defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool),
|
46
|
+
].compact.freeze
|
47
|
+
|
48
|
+
# Record the given +sql+ within a new frame, using the given +start+ and
|
49
|
+
# +finish+ times.
|
50
|
+
def notice_sql(state, sql, args, start, finish)
|
51
|
+
metric = primary_metric_for(sql, args)
|
52
|
+
agent = OneApm::Agent.instance
|
53
|
+
duration = finish - start
|
54
|
+
stack = state.traced_method_stack
|
55
|
+
|
56
|
+
begin
|
57
|
+
frame = stack.push_frame(state, :sequel, start)
|
58
|
+
explainer = Proc.new do |*|
|
59
|
+
if THREAD_SAFE_CONNECTION_POOL_CLASSES.include?(self.pool.class)
|
60
|
+
self[ sql ].explain
|
61
|
+
else
|
62
|
+
OneApm::Agent.logger.log_once(:info, :sequel_explain_skipped, "Not running SQL explains because Sequel is not in recognized multi-threaded mode")
|
63
|
+
nil
|
64
|
+
end
|
65
|
+
end
|
66
|
+
agent.transaction_sampler.notice_sql(sql, self.opts, duration, state, &explainer)
|
67
|
+
agent.sql_sampler.notice_sql(sql, metric, self.opts, duration, state, &explainer)
|
68
|
+
ensure
|
69
|
+
stack.pop_frame(state, frame, metric, finish)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
# Derive a primary database metric for the specified +sql+.
|
75
|
+
def primary_metric_for(sql, _)
|
76
|
+
return metric_for_sql(OneApm::Helper.correctly_encoded(sql))
|
77
|
+
end
|
78
|
+
|
79
|
+
end # module OneApmInstrumentation
|
80
|
+
|
81
|
+
OneApm::Agent.logger.debug "Registering the :oneapm_instrumentation extension."
|
82
|
+
Database.register_extension(:oneapm_instrumentation, OneApmInstrumentation)
|
83
|
+
|
84
|
+
end # module Sequel
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'sequel' unless defined?(Sequel)
|
4
|
+
require 'oneapm_rpm' unless defined?(OneApm)
|
5
|
+
|
6
|
+
module Sequel
|
7
|
+
module Plugins
|
8
|
+
module OneapmInstrumentation
|
9
|
+
|
10
|
+
module MethodTracer
|
11
|
+
|
12
|
+
def make_tracer_method( opname, options )
|
13
|
+
body = Proc.new do |*args, &block|
|
14
|
+
classname = self.is_a?( Class ) ? self.name : self.class.name
|
15
|
+
metric = "ActiveRecord/%s/%s" % [ classname, opname ]
|
16
|
+
trace_execution_scoped( metric, options ) do
|
17
|
+
super( *args, &block )
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
return body
|
22
|
+
end
|
23
|
+
|
24
|
+
def add_method_tracer( method_name, metric=nil, options={} )
|
25
|
+
# Shift options hash if metric is omitted
|
26
|
+
if metric.is_a?( Hash )
|
27
|
+
options = metric
|
28
|
+
metric = nil
|
29
|
+
end
|
30
|
+
|
31
|
+
metric ||= method_name.to_s
|
32
|
+
|
33
|
+
body = make_tracer_method( metric, options )
|
34
|
+
define_method( method_name, &body )
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
module InstanceMethods
|
40
|
+
include OneApm::Support::MethodTracer
|
41
|
+
extend Sequel::Plugins::OneapmInstrumentation::MethodTracer
|
42
|
+
|
43
|
+
add_method_tracer :delete
|
44
|
+
add_method_tracer :destroy
|
45
|
+
add_method_tracer :update
|
46
|
+
add_method_tracer :update_all
|
47
|
+
add_method_tracer :update_except
|
48
|
+
add_method_tracer :update_fields
|
49
|
+
add_method_tracer :update_only
|
50
|
+
add_method_tracer :save
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
module ClassMethods
|
55
|
+
include OneApm::Support::MethodTracer
|
56
|
+
extend Sequel::Plugins::OneapmInstrumentation::MethodTracer
|
57
|
+
|
58
|
+
add_method_tracer :[], :get
|
59
|
+
add_method_tracer :all
|
60
|
+
add_method_tracer :first
|
61
|
+
add_method_tracer :create
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
data/oneapm.yml
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
#
|
2
|
+
# OneApm RubyAgent Configuration
|
3
|
+
#
|
4
|
+
|
5
|
+
# Here are the settings that are common to all environments
|
6
|
+
common: &default_settings
|
7
|
+
# ============================== LICENSE KEY ===============================
|
8
|
+
|
9
|
+
#
|
10
|
+
# Get your license key from oneapm.com
|
11
|
+
#
|
12
|
+
license_key: 'please-paste-your-license-key-here'
|
13
|
+
|
14
|
+
# Agent Enabled (Ruby/Rails Only)
|
15
|
+
# Valid values are true, false and auto.
|
16
|
+
#
|
17
|
+
# agent_enabled: auto
|
18
|
+
|
19
|
+
# This app_name will be the application name in oneapm.com in your account.
|
20
|
+
#
|
21
|
+
# Caution: If you change this name, a new application will appear in the OneApm
|
22
|
+
# user interface with the new name, and data will stop reporting to the
|
23
|
+
# app with the old name.
|
24
|
+
#
|
25
|
+
app_name: My Application
|
26
|
+
|
27
|
+
# When "true", the agent collects performance data about your
|
28
|
+
# application and reports this data to the OneApm service at
|
29
|
+
# oneapm.com. This global switch is normally overridden for each
|
30
|
+
# environment below. (formerly called 'enabled')
|
31
|
+
monitor_mode: true
|
32
|
+
|
33
|
+
# Specify its log level here.
|
34
|
+
log_level: info
|
35
|
+
|
36
|
+
# log_file_path: 'log'
|
37
|
+
# log_file_name: 'oneapm_agent.log'
|
38
|
+
|
39
|
+
# The oneapm agent communicates with the service via https by default.
|
40
|
+
# ssl: true
|
41
|
+
|
42
|
+
# ======================== Browser Monitoring =============================
|
43
|
+
browser_monitoring:
|
44
|
+
# By default the agent automatically injects the monitoring JavaScript
|
45
|
+
# into web pages. Set this attribute to false to turn off this behavior.
|
46
|
+
auto_instrument: true
|
47
|
+
|
48
|
+
# Proxy settings for connecting to the OneApm server.
|
49
|
+
#
|
50
|
+
# proxy_host: hostname
|
51
|
+
# proxy_port: 8080
|
52
|
+
# proxy_user:
|
53
|
+
# proxy_pass:
|
54
|
+
|
55
|
+
# Tells transaction tracer and error collector (when enabled)
|
56
|
+
# whether or not to capture HTTP params. When true, frameworks can
|
57
|
+
# exclude HTTP parameters from being captured.
|
58
|
+
# Rails: the RoR filter_parameter_logging excludes parameters
|
59
|
+
capture_params: false
|
60
|
+
|
61
|
+
# Transaction tracer captures deep information about slow
|
62
|
+
# transactions and sends this to the OneApm service once a
|
63
|
+
# minute. Included in the transaction is the exact call sequence of
|
64
|
+
# the transactions including any SQL statements issued.
|
65
|
+
transaction_tracer:
|
66
|
+
|
67
|
+
# Transaction tracer is enabled by default.
|
68
|
+
enabled: true
|
69
|
+
|
70
|
+
# Threshold in seconds for when to collect a transaction
|
71
|
+
# trace. When the response time of a controller action exceeds
|
72
|
+
# this threshold, a transaction trace will be recorded and sent to
|
73
|
+
# OneApm. Valid values are any float value, or (default) "apdex_f",
|
74
|
+
# which will use the threshold for an dissatisfying Apdex
|
75
|
+
# controller action - four times the Apdex T value.
|
76
|
+
transaction_threshold: apdex_f
|
77
|
+
|
78
|
+
# When transaction tracer is on, SQL statements can optionally be
|
79
|
+
# recorded. The recorder has three modes, "off" which sends no
|
80
|
+
# SQL, "raw" which sends the SQL statement in its original form,
|
81
|
+
# and "obfuscated", which strips out numeric and string literals.
|
82
|
+
record_sql: obfuscated
|
83
|
+
|
84
|
+
# Threshold in seconds for when to collect stack trace for a SQL
|
85
|
+
# call. In other words, when SQL statements exceed this threshold,
|
86
|
+
# then capture and send to OneApm the current stack trace. This is
|
87
|
+
# helpful for pinpointing where long SQL calls originate from.
|
88
|
+
stack_trace_threshold: 0.500
|
89
|
+
|
90
|
+
# Determines whether the agent will capture query plans for slow
|
91
|
+
# SQL queries. Only supported in mysql and postgres. Should be
|
92
|
+
# set to false when using other adapters.
|
93
|
+
# explain_enabled: true
|
94
|
+
|
95
|
+
# Threshold for query execution time below which query plans will
|
96
|
+
# not be captured. Relevant only when `explain_enabled` is true.
|
97
|
+
# explain_threshold: 0.5
|
98
|
+
|
99
|
+
# Error collector captures information about uncaught exceptions and
|
100
|
+
# sends them to OneApm for viewing
|
101
|
+
error_collector:
|
102
|
+
|
103
|
+
# Error collector is enabled by default.
|
104
|
+
enabled: true
|
105
|
+
|
106
|
+
# Ignore the following errors, add your own.
|
107
|
+
ignore_errors: "ActionController::RoutingError,Sinatra::NotFound"
|
108
|
+
|
109
|
+
# ===================== Application Environments ========================
|
110
|
+
# Environment-specific settings are in this section.
|
111
|
+
# For Rails applications, RAILS_ENV is used to determine the environment.
|
112
|
+
|
113
|
+
# NOTE if your application has other named environments, you should
|
114
|
+
# provide oneapm configuration settings for these environments here.
|
115
|
+
|
116
|
+
development:
|
117
|
+
<<: *default_settings
|
118
|
+
# Turn on communication to OneApm service in development mode
|
119
|
+
monitor_mode: true
|
120
|
+
app_name: My Application (Development)
|
121
|
+
|
122
|
+
test:
|
123
|
+
<<: *default_settings
|
124
|
+
monitor_mode: false
|
125
|
+
|
126
|
+
# Turn on the agent in production for 24x7 monitoring.
|
127
|
+
production:
|
128
|
+
<<: *default_settings
|
129
|
+
monitor_mode: true
|
130
|
+
|
131
|
+
# Staging environment which behaves identically to production.
|
132
|
+
staging:
|
133
|
+
<<: *default_settings
|
134
|
+
monitor_mode: true
|
135
|
+
app_name: My Application (Staging)
|
data/oneapm_rpm.gemspec
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'one_apm/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'oneapm_rpm'
|
9
|
+
s.version = OneApm::VERSION::STRING
|
10
|
+
s.author = 'oneapm'
|
11
|
+
s.email = 'support@oneapm.com'
|
12
|
+
s.homepage = 'http://oneapm.com/features/ruby.html'
|
13
|
+
|
14
|
+
s.licenses = ['OneApm', 'MIT', 'Ruby']
|
15
|
+
s.summary = 'OneApm Ruby Agent'
|
16
|
+
s.description = 'OneApm Ruby Agent. (http://oneapm.com/features/ruby.html)'
|
17
|
+
|
18
|
+
s.required_ruby_version = '>= 1.8.7'
|
19
|
+
s.required_rubygems_version = '>= 1.3.5'
|
20
|
+
|
21
|
+
file_list = `git ls-files`.split
|
22
|
+
file_list.delete_if { |item| item =~ /(test\/|bin\/|Rakefile)/ }
|
23
|
+
s.files = file_list
|
24
|
+
|
25
|
+
s.require_paths = ['lib']
|
26
|
+
s.rubygems_version = Gem::VERSION
|
27
|
+
|
28
|
+
s.add_development_dependency 'rake', '10.1.0'
|
29
|
+
s.add_development_dependency 'minitest', '~> 4.7'
|
30
|
+
s.add_development_dependency 'minitest-ci', '= 2.4.0'
|
31
|
+
s.add_development_dependency 'minitest-focus', '~> 1.1'
|
32
|
+
s.add_development_dependency 'simplecov', '= 0.10.0'
|
33
|
+
s.add_development_dependency 'mocha', '~> 0.13.0'
|
34
|
+
s.add_development_dependency 'rails', '~> 3.2'
|
35
|
+
s.add_development_dependency 'pry', '~> 0.9.12'
|
36
|
+
s.add_development_dependency 'hometown', '~> 0.2.5'
|
37
|
+
|
38
|
+
if RUBY_VERSION >= '1.9.3'
|
39
|
+
s.add_development_dependency 'guard', '= 2.12.5'
|
40
|
+
s.add_development_dependency 'guard-minitest', '= 2.4.4'
|
41
|
+
s.add_development_dependency 'rb-fsevent', '= 0.9.4'
|
42
|
+
end
|
43
|
+
|
44
|
+
# compatible with Ruby 1.8.7
|
45
|
+
s.add_development_dependency 'i18n', '0.6.11'
|
46
|
+
|
47
|
+
if RUBY_PLATFORM == 'java'
|
48
|
+
s.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
|
49
|
+
s.add_development_dependency 'jruby-openssl'
|
50
|
+
else
|
51
|
+
s.add_development_dependency 'sqlite3', '= 1.3.10'
|
52
|
+
end
|
53
|
+
|
54
|
+
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
55
|
+
s.add_development_dependency 'rubysl'
|
56
|
+
s.add_development_dependency 'racc'
|
57
|
+
end
|
58
|
+
end
|
metadata
ADDED
@@ -0,0 +1,474 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oneapm_rpm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- oneapm
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 10.1.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 10.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-ci
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.4.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.4.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-focus
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.10.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mocha
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.13.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.13.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.2'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.2'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.9.12
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.9.12
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: hometown
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.2.5
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.2.5
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.12.5
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.12.5
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-minitest
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 2.4.4
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 2.4.4
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rb-fsevent
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.9.4
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.9.4
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: i18n
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.6.11
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.6.11
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: sqlite3
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.3.10
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.3.10
|
209
|
+
description: OneApm Ruby Agent. (http://oneapm.com/features/ruby.html)
|
210
|
+
email: support@oneapm.com
|
211
|
+
executables: []
|
212
|
+
extensions: []
|
213
|
+
extra_rdoc_files: []
|
214
|
+
files:
|
215
|
+
- ".gitignore"
|
216
|
+
- ".rubocop.yml"
|
217
|
+
- Gemfile
|
218
|
+
- Guardfile
|
219
|
+
- LICENSE
|
220
|
+
- README.md
|
221
|
+
- config/cert/cacert.pem
|
222
|
+
- config/database.yml
|
223
|
+
- lib/initializers/goliath.rb
|
224
|
+
- lib/initializers/other.rb
|
225
|
+
- lib/initializers/rails.rb
|
226
|
+
- lib/one_apm/agent.rb
|
227
|
+
- lib/one_apm/agent/agent.rb
|
228
|
+
- lib/one_apm/agent/agent/connect.rb
|
229
|
+
- lib/one_apm/agent/agent/container_data_manager.rb
|
230
|
+
- lib/one_apm/agent/agent/forkable_dispatcher_functions.rb
|
231
|
+
- lib/one_apm/agent/agent/helpers.rb
|
232
|
+
- lib/one_apm/agent/agent/start.rb
|
233
|
+
- lib/one_apm/agent/agent/start_worker_thread.rb
|
234
|
+
- lib/one_apm/agent/busy_calculator.rb
|
235
|
+
- lib/one_apm/agent/cross_app/cross_app_monitor.rb
|
236
|
+
- lib/one_apm/agent/cross_app/cross_app_tracing.rb
|
237
|
+
- lib/one_apm/agent/database.rb
|
238
|
+
- lib/one_apm/agent/database/active_record_helper.rb
|
239
|
+
- lib/one_apm/agent/database/obfuscation_helpers.rb
|
240
|
+
- lib/one_apm/agent/database/obfuscator.rb
|
241
|
+
- lib/one_apm/agent/database/postgres_explain_obfuscator.rb
|
242
|
+
- lib/one_apm/agent/datastores.rb
|
243
|
+
- lib/one_apm/agent/datastores/metric_helper.rb
|
244
|
+
- lib/one_apm/agent/datastores/mongo.rb
|
245
|
+
- lib/one_apm/agent/datastores/mongo/metric_translator.rb
|
246
|
+
- lib/one_apm/agent/datastores/mongo/obfuscator.rb
|
247
|
+
- lib/one_apm/agent/datastores/mongo/statement_formatter.rb
|
248
|
+
- lib/one_apm/agent/event/event_listener.rb
|
249
|
+
- lib/one_apm/agent/event/event_loop.rb
|
250
|
+
- lib/one_apm/agent/event/worker_loop.rb
|
251
|
+
- lib/one_apm/agent/harvester.rb
|
252
|
+
- lib/one_apm/agent/inbound_request_monitor.rb
|
253
|
+
- lib/one_apm/agent/javascript_instrumentor.rb
|
254
|
+
- lib/one_apm/agent/pipe/pipe_channel_manager.rb
|
255
|
+
- lib/one_apm/agent/pipe/pipe_service.rb
|
256
|
+
- lib/one_apm/agent/sampler.rb
|
257
|
+
- lib/one_apm/agent/sampler_collection.rb
|
258
|
+
- lib/one_apm/agent/samplers/cpu_sampler.rb
|
259
|
+
- lib/one_apm/agent/samplers/delayed_job_sampler.rb
|
260
|
+
- lib/one_apm/agent/samplers/memory_sampler.rb
|
261
|
+
- lib/one_apm/agent/samplers/object_sampler.rb
|
262
|
+
- lib/one_apm/agent/samplers/vm_sampler.rb
|
263
|
+
- lib/one_apm/agent/synthetics_monitor.rb
|
264
|
+
- lib/one_apm/agent/threading/agent_thread.rb
|
265
|
+
- lib/one_apm/agent/threading/backtrace_node.rb
|
266
|
+
- lib/one_apm/agent/threading/backtrace_service.rb
|
267
|
+
- lib/one_apm/agent/threading/thread_profile.rb
|
268
|
+
- lib/one_apm/collector/collector/helper.rb
|
269
|
+
- lib/one_apm/collector/collector/http_connection.rb
|
270
|
+
- lib/one_apm/collector/collector/server_methods.rb
|
271
|
+
- lib/one_apm/collector/collector_service.rb
|
272
|
+
- lib/one_apm/collector/commands/agent_command.rb
|
273
|
+
- lib/one_apm/collector/commands/thread_profiler_session.rb
|
274
|
+
- lib/one_apm/collector/commands/xray_session.rb
|
275
|
+
- lib/one_apm/collector/commands/xray_session_collection.rb
|
276
|
+
- lib/one_apm/collector/containers/agent_command_router.rb
|
277
|
+
- lib/one_apm/collector/containers/custom_event_aggregator.rb
|
278
|
+
- lib/one_apm/collector/containers/error_collector.rb
|
279
|
+
- lib/one_apm/collector/containers/sql_sampler.rb
|
280
|
+
- lib/one_apm/collector/containers/stats_engine.rb
|
281
|
+
- lib/one_apm/collector/containers/transaction_event_aggregator.rb
|
282
|
+
- lib/one_apm/collector/containers/transaction_sampler.rb
|
283
|
+
- lib/one_apm/collector/containers/utilization_data.rb
|
284
|
+
- lib/one_apm/collector/stats_engine/gc_profiler.rb
|
285
|
+
- lib/one_apm/collector/stats_engine/metric_stats.rb
|
286
|
+
- lib/one_apm/collector/stats_engine/stats_hash.rb
|
287
|
+
- lib/one_apm/configuration.rb
|
288
|
+
- lib/one_apm/configuration/autostart.rb
|
289
|
+
- lib/one_apm/configuration/default_source.rb
|
290
|
+
- lib/one_apm/configuration/environment_source.rb
|
291
|
+
- lib/one_apm/configuration/high_security_source.rb
|
292
|
+
- lib/one_apm/configuration/manual_source.rb
|
293
|
+
- lib/one_apm/configuration/server_source.rb
|
294
|
+
- lib/one_apm/configuration/yaml_source.rb
|
295
|
+
- lib/one_apm/errors/agent_errors.rb
|
296
|
+
- lib/one_apm/errors/internal_agent_error.rb
|
297
|
+
- lib/one_apm/errors/noticed_error.rb
|
298
|
+
- lib/one_apm/frameworks/external.rb
|
299
|
+
- lib/one_apm/frameworks/rails.rb
|
300
|
+
- lib/one_apm/frameworks/rails3.rb
|
301
|
+
- lib/one_apm/frameworks/rails4.rb
|
302
|
+
- lib/one_apm/frameworks/ruby.rb
|
303
|
+
- lib/one_apm/frameworks/sinatra.rb
|
304
|
+
- lib/one_apm/inst/3rd/active_merchant.rb
|
305
|
+
- lib/one_apm/inst/3rd/acts_as_solr.rb
|
306
|
+
- lib/one_apm/inst/3rd/authlogic.rb
|
307
|
+
- lib/one_apm/inst/3rd/sunspot.rb
|
308
|
+
- lib/one_apm/inst/background_job/active_job.rb
|
309
|
+
- lib/one_apm/inst/background_job/delayed_job.rb
|
310
|
+
- lib/one_apm/inst/background_job/delayed_job_injection.rb
|
311
|
+
- lib/one_apm/inst/background_job/resque.rb
|
312
|
+
- lib/one_apm/inst/background_job/sidekiq.rb
|
313
|
+
- lib/one_apm/inst/dispatcher/passenger.rb
|
314
|
+
- lib/one_apm/inst/dispatcher/rainbows.rb
|
315
|
+
- lib/one_apm/inst/framework/grape.rb
|
316
|
+
- lib/one_apm/inst/framework/padrino.rb
|
317
|
+
- lib/one_apm/inst/framework/sinatra.rb
|
318
|
+
- lib/one_apm/inst/framework/sinatra/ignorer.rb
|
319
|
+
- lib/one_apm/inst/framework/sinatra/transaction_namer.rb
|
320
|
+
- lib/one_apm/inst/http_clients/curb.rb
|
321
|
+
- lib/one_apm/inst/http_clients/excon.rb
|
322
|
+
- lib/one_apm/inst/http_clients/excon/connection.rb
|
323
|
+
- lib/one_apm/inst/http_clients/excon/middleware.rb
|
324
|
+
- lib/one_apm/inst/http_clients/httpclient.rb
|
325
|
+
- lib/one_apm/inst/http_clients/net.rb
|
326
|
+
- lib/one_apm/inst/http_clients/typhoeus.rb
|
327
|
+
- lib/one_apm/inst/nosql/memcache.rb
|
328
|
+
- lib/one_apm/inst/nosql/mongo.rb
|
329
|
+
- lib/one_apm/inst/nosql/mongo_moped.rb
|
330
|
+
- lib/one_apm/inst/nosql/redis.rb
|
331
|
+
- lib/one_apm/inst/orm/active_record.rb
|
332
|
+
- lib/one_apm/inst/orm/active_record_4.rb
|
333
|
+
- lib/one_apm/inst/orm/data_mapper.rb
|
334
|
+
- lib/one_apm/inst/orm/sequel.rb
|
335
|
+
- lib/one_apm/inst/rack.rb
|
336
|
+
- lib/one_apm/inst/rack/rack.rb
|
337
|
+
- lib/one_apm/inst/rack/rack_builder.rb
|
338
|
+
- lib/one_apm/inst/rails/action_controller.rb
|
339
|
+
- lib/one_apm/inst/rails/action_web_service.rb
|
340
|
+
- lib/one_apm/inst/rails/errors.rb
|
341
|
+
- lib/one_apm/inst/rails3/action_controller.rb
|
342
|
+
- lib/one_apm/inst/rails3/errors.rb
|
343
|
+
- lib/one_apm/inst/rails4/action_controller.rb
|
344
|
+
- lib/one_apm/inst/rails4/action_controller_subscriber.rb
|
345
|
+
- lib/one_apm/inst/rails4/action_view.rb
|
346
|
+
- lib/one_apm/inst/rails4/action_view_subscriber.rb
|
347
|
+
- lib/one_apm/inst/rails4/active_record_subscriber.rb
|
348
|
+
- lib/one_apm/inst/rails4/errors.rb
|
349
|
+
- lib/one_apm/inst/rails_middleware.rb
|
350
|
+
- lib/one_apm/inst/support/evented_subscriber.rb
|
351
|
+
- lib/one_apm/inst/support/ignore_actions.rb
|
352
|
+
- lib/one_apm/inst/support/queue_time.rb
|
353
|
+
- lib/one_apm/inst/transaction_base.rb
|
354
|
+
- lib/one_apm/logger/agent_logger.rb
|
355
|
+
- lib/one_apm/logger/audit_logger.rb
|
356
|
+
- lib/one_apm/logger/memory_logger.rb
|
357
|
+
- lib/one_apm/logger/null_logger.rb
|
358
|
+
- lib/one_apm/metrics/metric_data.rb
|
359
|
+
- lib/one_apm/metrics/metric_spec.rb
|
360
|
+
- lib/one_apm/metrics/stats.rb
|
361
|
+
- lib/one_apm/probe.rb
|
362
|
+
- lib/one_apm/probe/framework_loader.rb
|
363
|
+
- lib/one_apm/probe/instance_methods.rb
|
364
|
+
- lib/one_apm/probe/instrumentation.rb
|
365
|
+
- lib/one_apm/rack/browser_monitoring.rb
|
366
|
+
- lib/one_apm/rack/middleware_base.rb
|
367
|
+
- lib/one_apm/rack/middleware_hooks.rb
|
368
|
+
- lib/one_apm/rack/middleware_tracing.rb
|
369
|
+
- lib/one_apm/rack/middleware_wrapper.rb
|
370
|
+
- lib/one_apm/support/chained_call.rb
|
371
|
+
- lib/one_apm/support/coerce.rb
|
372
|
+
- lib/one_apm/support/collection_helper.rb
|
373
|
+
- lib/one_apm/support/dotted_hash.rb
|
374
|
+
- lib/one_apm/support/encoders.rb
|
375
|
+
- lib/one_apm/support/environment_report.rb
|
376
|
+
- lib/one_apm/support/event_buffer.rb
|
377
|
+
- lib/one_apm/support/event_buffer/sampled_buffer.rb
|
378
|
+
- lib/one_apm/support/event_buffer/sized_buffer.rb
|
379
|
+
- lib/one_apm/support/event_buffer/synthetics_event_buffer.rb
|
380
|
+
- lib/one_apm/support/helper.rb
|
381
|
+
- lib/one_apm/support/hostname.rb
|
382
|
+
- lib/one_apm/support/http_clients/curb_wrappers.rb
|
383
|
+
- lib/one_apm/support/http_clients/excon_wrappers.rb
|
384
|
+
- lib/one_apm/support/http_clients/httpclient_wrappers.rb
|
385
|
+
- lib/one_apm/support/http_clients/net_http_wrappers.rb
|
386
|
+
- lib/one_apm/support/http_clients/typhoeus_wrappers.rb
|
387
|
+
- lib/one_apm/support/http_clients/uri_util.rb
|
388
|
+
- lib/one_apm/support/json_marshaller.rb
|
389
|
+
- lib/one_apm/support/json_wrapper.rb
|
390
|
+
- lib/one_apm/support/language_support.rb
|
391
|
+
- lib/one_apm/support/library_detection.rb
|
392
|
+
- lib/one_apm/support/local_environment.rb
|
393
|
+
- lib/one_apm/support/marshaller.rb
|
394
|
+
- lib/one_apm/support/method_tracer.rb
|
395
|
+
- lib/one_apm/support/method_tracer/helpers.rb
|
396
|
+
- lib/one_apm/support/method_tracer/traced_method_stack.rb
|
397
|
+
- lib/one_apm/support/obfuscator.rb
|
398
|
+
- lib/one_apm/support/okjson.rb
|
399
|
+
- lib/one_apm/support/parameter_filtering.rb
|
400
|
+
- lib/one_apm/support/rules_engine.rb
|
401
|
+
- lib/one_apm/support/rules_engine/replacement_rule.rb
|
402
|
+
- lib/one_apm/support/rules_engine/segment_terms_rule.rb
|
403
|
+
- lib/one_apm/support/server.rb
|
404
|
+
- lib/one_apm/support/supported_versions.rb
|
405
|
+
- lib/one_apm/support/system_info.rb
|
406
|
+
- lib/one_apm/support/timer_lib.rb
|
407
|
+
- lib/one_apm/support/version_number.rb
|
408
|
+
- lib/one_apm/support/vm.rb
|
409
|
+
- lib/one_apm/support/vm/jruby_vm.rb
|
410
|
+
- lib/one_apm/support/vm/monotonic_gc_profiler.rb
|
411
|
+
- lib/one_apm/support/vm/mri_vm.rb
|
412
|
+
- lib/one_apm/support/vm/rubinius_vm.rb
|
413
|
+
- lib/one_apm/support/vm/snapshot.rb
|
414
|
+
- lib/one_apm/transaction.rb
|
415
|
+
- lib/one_apm/transaction/class_methods.rb
|
416
|
+
- lib/one_apm/transaction/instance_helpers.rb
|
417
|
+
- lib/one_apm/transaction/metric_constants.rb
|
418
|
+
- lib/one_apm/transaction/sample_buffer/force_persist_sample_buffer.rb
|
419
|
+
- lib/one_apm/transaction/sample_buffer/slowest_sample_buffer.rb
|
420
|
+
- lib/one_apm/transaction/sample_buffer/synthetics_sample_buffer.rb
|
421
|
+
- lib/one_apm/transaction/sample_buffer/transaction_sample_buffer.rb
|
422
|
+
- lib/one_apm/transaction/sample_buffer/xray_sample_buffer.rb
|
423
|
+
- lib/one_apm/transaction/segment.rb
|
424
|
+
- lib/one_apm/transaction/segment_summary.rb
|
425
|
+
- lib/one_apm/transaction/thread_local_access.rb
|
426
|
+
- lib/one_apm/transaction/transaction_analysis.rb
|
427
|
+
- lib/one_apm/transaction/transaction_apdex.rb
|
428
|
+
- lib/one_apm/transaction/transaction_cpu.rb
|
429
|
+
- lib/one_apm/transaction/transaction_finish_append.rb
|
430
|
+
- lib/one_apm/transaction/transaction_ignore.rb
|
431
|
+
- lib/one_apm/transaction/transaction_jruby_functions.rb
|
432
|
+
- lib/one_apm/transaction/transaction_metrics.rb
|
433
|
+
- lib/one_apm/transaction/transaction_name.rb
|
434
|
+
- lib/one_apm/transaction/transaction_namer.rb
|
435
|
+
- lib/one_apm/transaction/transaction_sample.rb
|
436
|
+
- lib/one_apm/transaction/transaction_sample_builder.rb
|
437
|
+
- lib/one_apm/transaction/transaction_state.rb
|
438
|
+
- lib/one_apm/transaction/transaction_summary.rb
|
439
|
+
- lib/one_apm/transaction/transaction_synthetics.rb
|
440
|
+
- lib/one_apm/transaction/transaction_timings.rb
|
441
|
+
- lib/one_apm/version.rb
|
442
|
+
- lib/oneapm_rpm.rb
|
443
|
+
- lib/sequel/extensions/oneapm_instrumentation.rb
|
444
|
+
- lib/sequel/plugins/oneapm_instrumentation.rb
|
445
|
+
- oneapm.yml
|
446
|
+
- oneapm_rpm.gemspec
|
447
|
+
homepage: http://oneapm.com/features/ruby.html
|
448
|
+
licenses:
|
449
|
+
- OneApm
|
450
|
+
- MIT
|
451
|
+
- Ruby
|
452
|
+
metadata: {}
|
453
|
+
post_install_message:
|
454
|
+
rdoc_options: []
|
455
|
+
require_paths:
|
456
|
+
- lib
|
457
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
458
|
+
requirements:
|
459
|
+
- - ">="
|
460
|
+
- !ruby/object:Gem::Version
|
461
|
+
version: 1.8.7
|
462
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
463
|
+
requirements:
|
464
|
+
- - ">="
|
465
|
+
- !ruby/object:Gem::Version
|
466
|
+
version: 1.3.5
|
467
|
+
requirements: []
|
468
|
+
rubyforge_project:
|
469
|
+
rubygems_version: 2.4.5
|
470
|
+
signing_key:
|
471
|
+
specification_version: 4
|
472
|
+
summary: OneApm Ruby Agent
|
473
|
+
test_files: []
|
474
|
+
has_rdoc:
|