From bcfb4e0f81bf74e42a8630786adfb7892668dfc3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 28 Nov 2022 12:25:30 +0100 Subject: [PATCH] :bug: Fix metrics code on rpc.climit --- backend/src/app/rpc/climit.clj | 14 +++++++------- common/deps.edn | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/src/app/rpc/climit.clj b/backend/src/app/rpc/climit.clj index 76c6f44e7..8b97c4cce 100644 --- a/backend/src/app/rpc/climit.clj +++ b/backend/src/app/rpc/climit.clj @@ -63,16 +63,16 @@ (l/trace :hint "enqueued" :key (name bkey) :skey (str skey) - :queue-size (get instance :current-queue-size) - :concurrency (get instance :current-concurrency) + :queue-size (get instance ::pxb/current-queue-size) + :concurrency (get instance ::pxb/current-concurrency)) (mtx/run! metrics :id :rpc-climit-queue-size - :val (get instance :current-queue-size) + :val (get instance ::pxb/current-queue-size) :labels labels) (mtx/run! metrics :id :rpc-climit-concurrency - :val (get instance :current-concurrency) - :labels labels))) + :val (get instance ::pxb/current-concurrency) + :labels labels)) on-run (fn [instance task] (let [elapsed (- (inst-ms (dt/now)) @@ -87,11 +87,11 @@ :labels labels) (mtx/run! metrics :id :rpc-climit-queue-size - :val (get instance :current-queue-size) + :val (get instance ::pxb/current-queue-size) :labels labels) (mtx/run! metrics :id :rpc-climit-concurrency - :val (get instance :current-concurrency) + :val (get instance ::pxb/current-concurrency) :labels labels))) options {:executor executor diff --git a/common/deps.edn b/common/deps.edn index efe44a594..435fffa59 100644 --- a/common/deps.edn +++ b/common/deps.edn @@ -23,7 +23,7 @@ com.cognitect/transit-cljs {:mvn/version "0.8.280"} java-http-clj/java-http-clj {:mvn/version "0.4.3"} - funcool/promesa {:mvn/version "9.2.541"} + funcool/promesa {:mvn/version "9.2.542"} funcool/cuerdas {:mvn/version "2022.06.16-403"} lambdaisland/uri {:mvn/version "1.13.95"