feat(sqs,dynamodb): TRACE-level payload logging (#697)

* feat(sqs,dynamodb): add TRACE-level payload logging

Add TRACE log lines that include request/response payloads for the
common SQS and DynamoDB operations -- off by default, opt-in via
per-category log level. Helps diagnose TestContainers-based test
failures where DEBUG IDs alone don't reveal what was sent.

SQS: SendMessage / SendMessageBatch / ReceiveMessage / DeleteMessage /
DeleteMessageBatch log body and attributes.

DynamoDB: PutItem / GetItem / UpdateItem / DeleteItem log the item;
Query and Scan log the returned and scanned counts (bodies would be
too noisy).

Ship quarkus.log.min-level: TRACE so a single category override is
enough -- users don't also have to lower the root floor.

Closes #613

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-05-04 17:30:10 -05:00
1 parent 8e30c09d0a
commit 3cc04994ea
7 files changed
+109 -11

No files matched your search

@@ -89,7 +89,7 @@ class GuardedMessageQueueTest {
var claimed = queue.claimVisibleMessages(1, 30, false, -1, null);
String handle = claimed.claimed().get(0).getReceiptHandle();
assertTrue(queue.removeByReceiptHandle(handle));
assertTrue(queue.removeByReceiptHandle(handle).isPresent());
// Message should be gone even with visibility timeout 0
var result = queue.claimVisibleMessages(1, 0, false, -1, null);
@@ -97,8 +97,8 @@ class GuardedMessageQueueTest {
}
@Test
void removeByReceiptHandleInvalidReturnsFalse() {
assertFalse(queue.removeByReceiptHandle("nonexistent"));
void removeByReceiptHandleInvalidReturnsEmpty() {
assertFalse(queue.removeByReceiptHandle("nonexistent").isPresent());
}
@Test