Module: TingYun::Agent::InstanceMethods

Includes:
Connect, ContainerDataManager, Start, StartWorkerThread
Included in:
Agent
Defined in:
lib/ting_yun/agent/instance_methods.rb,
lib/ting_yun/agent/instance_methods/start.rb,
lib/ting_yun/agent/instance_methods/connect.rb,
lib/ting_yun/agent/instance_methods/handle_errors.rb,
lib/ting_yun/agent/instance_methods/start_worker_thread.rb,
lib/ting_yun/agent/instance_methods/container_data_manager.rb

Defined Under Namespace

Modules: Connect, ContainerDataManager, HandleErrors, Start, StartWorkerThread

Instance Attribute Summary

Attributes included from ContainerDataManager

#error_collector, #sql_sampler, #stats_engine, #transaction_sampler

Instance Method Summary collapse

Methods included from StartWorkerThread

#create_and_run_event_loop, #deferred_work!, #start_worker_thread

Methods included from ContainerDataManager

#container_for_endpoint, #drop_buffered_data, #harvest_and_send_errors, #harvest_and_send_exceptions, #harvest_and_send_external_errors, #harvest_and_send_from_container, #harvest_and_send_slowest_sql, #harvest_and_send_timeslice_data, #harvest_and_send_transaction_traces, #harvest_from_container, #init_containers, #reset_objects_with_locks, #send_data_to_endpoint, #transmit_data

Methods included from Connect

#catch_errors, #connect_in_sync, #connect_settings, #connect_to_server, #connected?, #disconnect, #disconnected?, #environment_for_connect, #finish_setup, #generate_environment_report, #local_host, #log_collector_messages, #log_connection!, #query_server_for_configuration, #sanitize_environment_report, #should_connect?

Methods included from HandleErrors

#handle_delay_restart, #handle_force_disconnect, #handle_force_restart, #handle_license_error, #handle_other_error, #handle_server_error, #handle_unrecoverable_agent_error, #log_error

Methods included from Start

#after_fork, #agent_should_start?, #already_started?, #app_name_configured?, #check_config_and_start_agent, #has_correct_license_key?, #is_using_forking_dispatcher?, #log_startup, #setup_and_start_agent, #started?

Instance Method Details

#pop_trace_execution_flagObject



33
34
35
# File 'lib/ting_yun/agent/instance_methods.rb', line 33

def pop_trace_execution_flag
  TransactionState.tl_get.pop_traced
end

#push_trace_execution_flag(flag = false) ⇒ Object



29
30
31
# File 'lib/ting_yun/agent/instance_methods.rb', line 29

def push_trace_execution_flag(flag =false)
  TransactionState.tl_get.push_traced(flag)
end

#reset_to_default_configurationObject



19
20
21
22
# File 'lib/ting_yun/agent/instance_methods.rb', line 19

def reset_to_default_configuration
  TingYun::Agent.config.remove_config_type(:manual)
  TingYun::Agent.config.remove_config_type(:server)
end

#stop_event_loopObject



24
25
26
# File 'lib/ting_yun/agent/instance_methods.rb', line 24

def stop_event_loop
  @event_loop.stop if @event_loop
end