Skip to content

Commit dc961c9

Browse files
committed
Wrap fallback promise with metrics.
1 parent 9cc83a6 commit dc961c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sinks/dynamodb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const updateDynamoDB = ({
102102
if (isEmpty(updateResponse) && uow[fallbackUpdateRequestField] && !isFallback) {
103103
// If its empty, that indicates a conditional write failure, in that case we want to run the fallback
104104
// update, if present.
105-
return p(uow[fallbackUpdateRequestField], true)();
105+
return uow.metrics?.w(p(uow[fallbackUpdateRequestField], true)) || p(uow[fallbackUpdateRequestField], true)();
106106
} else {
107107
return { ...uow, [updateResponseField]: updateResponse };
108108
}

0 commit comments

Comments
 (0)