module TingYun::Agent::Collector::ErrorCollector::Metric
Public Instance Methods
action_exception_metric_names(txn)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 89 def action_exception_metric_names(txn) "#{EXCEPTIONS_ACTION}#{txn.best_name}" end
action_metric_names(txn,exception)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 62 def action_metric_names(txn,exception) names = ["#{ERRORS_ACTION}#{txn.best_name}"] if exception.respond_to? :tingyun_klass names << "#{ERRORS_ACTION}#{exception.tingyun_klass}" end names end
aggregated_exception_metric_names(txn)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 77 def aggregated_exception_metric_names(txn) metric_names = [EXCEPTIONS_ALL] return metric_names unless txn if TingYun::Agent::Transaction.recording_web_transaction? metric_names << EXCEPTIONS_ALL_WEB else metric_names << EXCEPTIONS_ALL_BACK_GROUND end metric_names end
aggregated_exception_type_count(exception,txn)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 93 def aggregated_exception_type_count(exception,txn) if exception.respond_to? :tingyun_klass names = ["#{EXCEPTIONS_TYPE}External #{exception.tingyun_code}/#{txn.best_name}"] names << "#{ERRORS_TYPE}#{exception.tingyun_code}/#{exception.tingyun_klass}" names << "#{ERRORS_ACTION}External/#{exception.tingyun_klass}" else names = ["#{EXCEPTIONS_TYPE}#{exception.class.to_s}/#{txn.best_name}"] end names end
aggregated_metric_names(txn)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 49 def aggregated_metric_names(txn) metric_names = [ERRORS_ALL] return metric_names unless txn if TingYun::Agent::Transaction.recording_web_transaction? metric_names << ERRORS_ALL_WEB else metric_names << ERRORS_ALL_BACK_GROUND end metric_names end
aggregated_type_count(exception,txn)
click to toggle source
# File lib/ting_yun/agent/collector/error_collector.rb, line 70 def aggregated_type_count(exception,txn) names = ["#{ERRORS_TYPE}#{exception.class.to_s}/#{txn.best_name}"] if exception.respond_to? :tingyun_klass names << "#{ERRORS_TYPE}#{exception.tingyun_code}/#{exception.tingyun_klass}" end names end