Class: Promenade::Client::Rack::HTTPRequestQueueTimeCollector
- Inherits:
-
MiddlwareBase
- Object
- MiddlwareBase
- Promenade::Client::Rack::HTTPRequestQueueTimeCollector
- Defined in:
- lib/promenade/client/rack/http_request_queue_time_collector.rb
Instance Method Summary collapse
-
#initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestLabeler) ⇒ HTTPRequestQueueTimeCollector
constructor
A new instance of HTTPRequestQueueTimeCollector.
Methods inherited from MiddlwareBase
Constructor Details
#initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestLabeler) ⇒ HTTPRequestQueueTimeCollector
Returns a new instance of HTTPRequestQueueTimeCollector.
14 15 16 17 18 19 20 21 |
# File 'lib/promenade/client/rack/http_request_queue_time_collector.rb', line 14 def initialize(app, registry: ::Prometheus::Client.registry, label_builder: RequestLabeler) @queue_time_buckets = Promenade.configuration.queue_time_buckets super(app, registry: registry, label_builder: label_builder) end |