Skip to content

Commit

Permalink
fix: metric nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Jan 19, 2024
1 parent 1e75468 commit 2a0c625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/domain/checkForAndPlaceOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
import { ChainContext, SDK_BACKOFF_NUM_OF_ATTEMPTS } from "./chainContext";
import {
pollingDurationSeconds,
pollingDurationSecondsByOwner,
pollingByOwnerDurationSeconds,
pollingPostProcessingDurationSeconds,
pollingOnChainDurationSeconds,
activeOrdersTotal,
Expand Down Expand Up @@ -109,7 +109,7 @@ export async function checkForAndPlaceOrder(
// No guarantee is made that the order of the owners is the same over multiple blocks
const ownerPromises = Array.from(ownerOrders.entries()).map(
async ([owner, conditionalOrders]) => {
const ownerTimer = pollingDurationSecondsByOwner
const ownerTimer = pollingByOwnerDurationSeconds
.labels(owner, chainId.toString(), blockNumber.toString())
.startTimer();
const log = getLogger(
Expand Down
4 changes: 2 additions & 2 deletions src/utils/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ export const pollingDurationSeconds = new client.Histogram({
labelNames: ["chain_id", "block"],
});

export const pollingDurationSecondsByOwner = new client.Histogram({
name: "watch_tower_polling_duration_by_owner_seconds",
export const pollingByOwnerDurationSeconds = new client.Histogram({
name: "watch_tower_polling_by_owner_duration_seconds",
help: "Duration of polling run",
labelNames: ["chain_id", "block", "owner"],
});
Expand Down

0 comments on commit 2a0c625

Please sign in to comment.