Class: Promenade::Client::Rack::HTTPRequestDurationCollector
- Inherits:
-
MiddlwareBase
- Object
- MiddlwareBase
- Promenade::Client::Rack::HTTPRequestDurationCollector
- Defined in:
- lib/promenade/client/rack/http_request_duration_collector.rb
Instance Method Summary collapse
-
#initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestControllerActionLabeler, exception_handler: nil) ⇒ HTTPRequestDurationCollector
constructor
A new instance of HTTPRequestDurationCollector.
Methods inherited from MiddlwareBase
Constructor Details
#initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestControllerActionLabeler, exception_handler: nil) ⇒ HTTPRequestDurationCollector
Returns a new instance of HTTPRequestDurationCollector.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/promenade/client/rack/http_request_duration_collector.rb', line 26 def initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestControllerActionLabeler, exception_handler: nil) @latency_buckets = Promenade.configuration.rack_latency_buckets @_exception_handler = exception_handler super(app, registry: registry, label_builder: label_builder) end |