Skip to content

Commit 63d7dd0

Browse files
committed
feat(metrics): add price update delay metric and update method
1 parent f446942 commit 63d7dd0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/price_pusher/src/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class Controller {
7171
priceConfig.timeDifference,
7272
);
7373
}
74-
74+
7575
const priceShouldUpdate = shouldUpdate(
7676
priceConfig,
7777
sourceLatestPrice,

apps/price_pusher/src/metrics.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export class PricePusherMetrics {
151151
): void {
152152
this.priceUpdateDelay.set(
153153
{ price_id: priceId, alias },
154-
sourceLatestPricePublishTime - targetLatestPricePublishTime - priceConfigTimeDifference
154+
sourceLatestPricePublishTime -
155+
targetLatestPricePublishTime -
156+
priceConfigTimeDifference,
155157
);
156158
}
157159

0 commit comments

Comments
 (0)