Class: Hyperion::Config::MetricsConfig
- Inherits:
-
Object
- Object
- Hyperion::Config::MetricsConfig
- Defined in:
- lib/hyperion/config.rb
Overview
2.4-C: Metrics subconfig. The headline knob is ‘path_templater`, which collapses raw request paths to low-cardinality templates for the per-route latency histogram (operators with Rails-style routes plug in their own templater). `enabled` flips the new 2.4-C histogram/gauge surface as a whole — counters in the legacy surface (requests, bytes_read, …) keep emitting regardless.
Constant Summary collapse
- ATTRS =
%i[path_templater enabled].freeze
Instance Method Summary collapse
-
#initialize ⇒ MetricsConfig
constructor
A new instance of MetricsConfig.
- #path_templater ⇒ Object
Constructor Details
#initialize ⇒ MetricsConfig
Returns a new instance of MetricsConfig.
186 187 188 189 |
# File 'lib/hyperion/config.rb', line 186 def initialize @path_templater = nil # lazily defaulted to PathTemplater.new on first read @enabled = true end |
Instance Method Details
#path_templater ⇒ Object
191 192 193 |
# File 'lib/hyperion/config.rb', line 191 def path_templater @path_templater ||= Hyperion::Metrics::PathTemplater.new end |