Class: OneApm::Agent::ShimAgent
Constant Summary
Constants included from Agent::StartWorkerThread
Agent::StartWorkerThread::OA_LOG_ONCE_KEYS_RESET_PERIOD, Agent::StartWorkerThread::OA_MIN_ALLOWED_REPORT_PERIOD, Agent::StartWorkerThread::OA_UTILIZATION_REPORT_PERIOD
Instance Attribute Summary
Attributes inherited from Agent
#cross_app_encoding_bytes, #cross_app_monitor, #cross_process_id, #events, #external_rename_rules, #harvest_lock, #harvest_samplers, #harvester, #javascript_instrumentor, #monotonic_gc_profiler, #record_sql, #service, #transaction_rules
Attributes included from Agent::ContainerDataManager
#agent_command_router, #custom_event_aggregator, #error_collector, #sql_sampler, #stats_engine, #transaction_event_aggregator, #transaction_sampler
Attributes included from Agent::Connect
Class Method Summary collapse
Instance Method Summary collapse
- #after_fork(*args) ⇒ Object
- #browser_timing_header ⇒ Object
-
#initialize ⇒ ShimAgent
constructor
A new instance of ShimAgent.
- #merge_data_for_endpoint(*args) ⇒ Object
- #pop_trace_execution_flag(*args) ⇒ Object
- #push_trace_execution_flag(*args) ⇒ Object
- #shutdown(*args) ⇒ Object
- #start(*args) ⇒ Object
Methods inherited from Agent
#agent_should_start?, config, #connect, #graceful_disconnect, #probe, #start_service, #untraced_graceful_disconnect
Methods included from Agent::RuleFetcher
Methods included from Agent::ForkableDispatcherFunctions
#flush_pipe_data, #install_pipe_service, #reset_harvest_locks, #reset_objects_with_locks, #synchronize_with_harvest
Methods included from Agent::ContainerDataManager
Methods included from Agent::Helpers
#obfuscator, #set_record_sql, #set_record_tt
Methods included from Agent::Connect
#apdex_f, #client_ip, #connect_retry_period, #connect_settings, #connect_to_server, #connected?, #disconnect, #disconnected?, #environment_for_connect, #finish_setup, #generate_environment_report, #handle_license_error, #handle_unrecoverable_agent_error, #local_host, #log_collector_messages, #log_connection!, #log_error, #note_connect_failure, #query_server_for_configuration, #sanitize_environment_report, #should_connect?
Methods included from Agent::StartWorkerThread
#create_and_run_event_loop, #create_event_loop, #deferred_work!, #report_period_for, #start_worker_thread, #stop_event_loop
Methods included from Agent::Start
#already_started?, #app_name_configured?, #check_config_and_start_agent, #connect_in_foreground, #defer_for_background_jobs?, #defer_for_delayed_job?, #defer_for_resque?, #disabled?, #has_correct_license_key?, #has_license_key?, #in_resque_child_process?, #install_exit_handler, #log_app_name, #log_dispatcher, #log_environment, #log_ignore_url_regexes, #log_startup, #log_tier_name, #log_version_and_pid, #monitoring?, #setup_and_start_agent, #started?, #tier_name_configured?, #using_forking_dispatcher?, #using_sinatra?, #weird_ruby?
Constructor Details
#initialize ⇒ ShimAgent
Returns a new instance of ShimAgent.
232 233 234 235 236 237 238 |
# File 'lib/one_apm/agent.rb', line 232 def initialize super @stats_engine.extend OneApm::Collector::StatsEngine::Shim @transaction_sampler.extend OneApm::Collector::TransactionSampler::Shim @sql_sampler.extend OneApm::Collector::SqlSampler::Shim @error_collector.extend OneApm::Collector::ErrorCollector::Shim end |
Class Method Details
.instance ⇒ Object
228 229 230 |
# File 'lib/one_apm/agent.rb', line 228 def self.instance @instance ||= self.new end |
Instance Method Details
#after_fork(*args) ⇒ Object
240 |
# File 'lib/one_apm/agent.rb', line 240 def after_fork *args; end |
#browser_timing_header ⇒ Object
246 |
# File 'lib/one_apm/agent.rb', line 246 def browser_timing_header; "" end |
#merge_data_for_endpoint(*args) ⇒ Object
243 |
# File 'lib/one_apm/agent.rb', line 243 def merge_data_for_endpoint *args; end |
#pop_trace_execution_flag(*args) ⇒ Object
245 |
# File 'lib/one_apm/agent.rb', line 245 def pop_trace_execution_flag *args; end |
#push_trace_execution_flag(*args) ⇒ Object
244 |
# File 'lib/one_apm/agent.rb', line 244 def push_trace_execution_flag *args; end |
#shutdown(*args) ⇒ Object
242 |
# File 'lib/one_apm/agent.rb', line 242 def shutdown *args; end |
#start(*args) ⇒ Object
241 |
# File 'lib/one_apm/agent.rb', line 241 def start *args; end |