Skip to content

Commit

Permalink
add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gxueatlassian committed Dec 4, 2023
1 parent f38a7ce commit f8c2320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sqs/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ export class SqsQueue<MessagePayload extends BaseMessagePayload> {
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 });

Expand Down

0 comments on commit f8c2320

Please sign in to comment.