Skip to content

Commit 6279088

Browse files
committed
CS
1 parent 1c089b0 commit 6279088

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cloudflare/src/handler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ export function withSentry<Env = unknown, QueueHandlerMessage = unknown, CfHostM
175175
'messaging.destination.name': batch.queue,
176176
'messaging.system': 'cloudflare',
177177
'messaging.batch.message_count': batch.messages.length,
178-
'messaging.message.retry.count': batch.messages.reduce((acc, message) => acc + message.attempts - 1, 0),
178+
'messaging.message.retry.count': batch.messages.reduce(
179+
(acc, message) => acc + message.attempts - 1,
180+
0,
181+
),
179182
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'queue.process',
180183
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.faas.cloudflare.queue',
181184
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'task',

0 commit comments

Comments
 (0)