From f8c2320a5bcb965f3d438132007d446f4cb04b29 Mon Sep 17 00:00:00 2001 From: Gary Xue Date: Tue, 5 Dec 2023 10:51:20 +1100 Subject: [PATCH] add metrics --- src/sqs/sqs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sqs/sqs.ts b/src/sqs/sqs.ts index b1fdb74b4..92a528229 100644 --- a/src/sqs/sqs.ts +++ b/src/sqs/sqs.ts @@ -390,6 +390,9 @@ export class SqsQueue { retryDelayInMin: String(errorHandlingResult.retryDelaySec && Math.floor(errorHandlingResult.retryDelaySec / 60)), msgVisibilityChangedInMin: String(visibilityChangedSec && Math.floor(visibilityChangedSec / 60)), skipDlq: String(errorHandlingResult.skipDlq), + receiveCount: String(context.receiveCount), + maxAttempts: String(this.maxAttempts), + remainingBeforeDlq: String(this.maxAttempts - context.receiveCount), reachedRetryLimit: String(this.isMessageReachedRetryLimit(context)) }, { jiraHost: context.payload?.jiraHost });