From 2cf453371861d9e7edeadcaa753bd63b4e6b639e Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Mon, 7 Oct 2024 11:00:01 -0700 Subject: [PATCH] correct names --- packages/cli/src/s3-store.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/s3-store.ts b/packages/cli/src/s3-store.ts index 9f84427194..f491a5f551 100644 --- a/packages/cli/src/s3-store.ts +++ b/packages/cli/src/s3-store.ts @@ -31,6 +31,9 @@ function definiteSearchParams>(obj: T): Dee */ const MAX_LOAD_RPS = 4000 +const LOAD_S3_QUEUE_ADD = 'load_s3_queue_add' +const LOAD_S3_QUEUE_SIZE = 'load_s3_queue_size' + export class S3KVFactory implements IKVFactory { readonly #networkName: string readonly #bucketName: string @@ -187,7 +190,7 @@ class S3KVStore implements IKVStore { get(key: string): Promise { Metrics.count(LOAD_S3_QUEUE_ADD, 1) - Metrics.observe(LOAD_S3_SIZE, this.#loadingLimit.size) + Metrics.observe(LOAD_S3_QUEUE_SIZE, this.#loadingLimit.size) return this.#loadingLimit.add(async () => { const value = await this.level.get(key) return JSON.parse(value)