Module: D13n::Metric::AppStateMetric::Namespace
- Included in:
- ExceptionProcessor, GemProcessor
- Defined in:
- lib/d13n/metric/metrics/app_state_metric.rb
Instance Method Summary collapse
Instance Method Details
#exception_metric_tags(exception, opts) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/d13n/metric/metrics/app_state_metric.rb', line 14 def (exception, opts) = [] << "idc:#{Helper.idc_name}" << "env:#{Helper.idc_env}" << "app:#{Helper.app_name}" << "name:#{exception.class.name}" << "at:#{opts.fetch(:at, 'runtime')}" << "src:#{opts.fetch(:src, 'app')}" << "uuid:#{opts.fetch(:uuid, 'unknown')}" << "stream_id:#{opts[:referring_stream_id] || opts.fetch(:uuid, 'unknown')}" end |
#gem_metric_tags(gem_info) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/d13n/metric/metrics/app_state_metric.rb', line 4 def (gem_info) = [] << "idc:#{Helper.idc_name}" << "env:#{Helper.idc_env}" << "app:#{Helper.app_name}" << "gem:#{gem_info[0]}" << "version:#{gem_info[1]}" end |