Class: Promenade::Client::Rack::HTTPRequestQueueTimeCollector

Inherits:
MiddlwareBase
  • Object
show all
Defined in:
lib/promenade/client/rack/http_request_queue_time_collector.rb

Instance Method Summary collapse

Methods inherited from MiddlwareBase

#call

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