From 678934f220a7b96c5a2b8ff95b22e9b5058eb85a Mon Sep 17 00:00:00 2001 From: Morgan Mccauley Date: Mon, 17 Jul 2023 09:03:50 +1200 Subject: [PATCH] fix: Change `HISTORICAL` metric demiension to string --- indexer-js-queue-handler/__snapshots__/metrics.test.js.snap | 2 +- indexer-js-queue-handler/metrics.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer-js-queue-handler/__snapshots__/metrics.test.js.snap b/indexer-js-queue-handler/__snapshots__/metrics.test.js.snap index 3fa7e7bac..7319a7d61 100644 --- a/indexer-js-queue-handler/__snapshots__/metrics.test.js.snap +++ b/indexer-js-queue-handler/__snapshots__/metrics.test.js.snap @@ -20,7 +20,7 @@ exports[`Metrics writes the block height for an indexer function 1`] = ` }, { "Name": "HISTORICAL", - "Value": false, + "Value": "false", }, ], "MetricName": "INDEXER_FUNCTION_LATEST_BLOCK_HEIGHT", diff --git a/indexer-js-queue-handler/metrics.js b/indexer-js-queue-handler/metrics.js index de0882052..90434f8bb 100644 --- a/indexer-js-queue-handler/metrics.js +++ b/indexer-js-queue-handler/metrics.js @@ -32,7 +32,7 @@ export default class Metrics { }, { Name: "HISTORICAL", - Value: isHistorical, + Value: isHistorical.toString(), }, ], Unit: "None",