Class: ScoutApm::LayerConverters::Histograms
- Inherits:
-
ConverterBase
- Object
- ConverterBase
- ScoutApm::LayerConverters::Histograms
- Defined in:
- lib/scout_apm/layer_converters/histograms.rb
Constant Summary
Constants inherited from ConverterBase
Instance Attribute Summary
Attributes inherited from ConverterBase
#context, #layer_finder, #request, #root_layer
Instance Method Summary collapse
-
#record! ⇒ Object
Updates immediate and long-term histograms for both job and web requests.
Methods inherited from ConverterBase
#attach_backtraces, #initialize, #limited?, #make_meta_options, #make_meta_options_desc_hash, #make_meta_options_scope, #over_metric_limit?, #register_hooks, #scope_layer, #skip_layer?, #store_aggregate_metric, #store_backtrace, #store_specific_metric, #subscope_name, #subscoped?
Constructor Details
This class inherits a constructor from ScoutApm::LayerConverters::ConverterBase
Instance Method Details
#record! ⇒ Object
Updates immediate and long-term histograms for both job and web requests
5 6 7 8 9 10 11 12 |
# File 'lib/scout_apm/layer_converters/histograms.rb', line 5 def record! if request.unique_name != :unknown context.request_histograms.add(request.unique_name, root_layer.total_call_time) context.request_histograms_by_time[@store.]. add(request.unique_name, root_layer.total_call_time) end nil # not returning anything in the layer results ... not used end |