Fix double _seconds suffix in GVL request wait metric name (#2539)
Rename histogram from :request_wait_seconds to :request_wait so Yabeda's unit: :seconds produces gvl_request_wait_seconds instead of gvl_request_wait_seconds_seconds.
This commit is contained in:
@@ -10,7 +10,7 @@ module Fizzy
|
||||
before = GVLTools::LocalTimer.monotonic_time
|
||||
result = @app.call(env)
|
||||
gvl_wait_ns = GVLTools::LocalTimer.monotonic_time - before
|
||||
Yabeda.gvl.request_wait_seconds.measure({}, gvl_wait_ns / 1_000_000_000.0)
|
||||
Yabeda.gvl.request_wait.measure({}, gvl_wait_ns / 1_000_000_000.0)
|
||||
result
|
||||
ensure
|
||||
GVLTools::LocalTimer.disable
|
||||
|
||||
@@ -14,7 +14,7 @@ module Yabeda
|
||||
gauge :global_timer_total_seconds,
|
||||
comment: "Total time all threads spent waiting on the GVL (seconds)"
|
||||
|
||||
histogram :request_wait_seconds,
|
||||
histogram :request_wait,
|
||||
unit: :seconds,
|
||||
comment: "GVL wait time experienced during a single request (seconds)",
|
||||
buckets: WAIT_HISTOGRAM_BUCKETS
|
||||
|
||||
Reference in New Issue
Block a user