Skip to content

Commit

Permalink
Add DynamoDB log for scans (#8007)
Browse files Browse the repository at this point in the history
* Add DynamoDB log for scans

* Update pkg/kv/dynamodb/store.go

Co-authored-by: guy-har <[email protected]>

---------

Co-authored-by: guy-har <[email protected]>
  • Loading branch information
itaiad200 and guy-har authored Jul 26, 2024
1 parent 62803f8 commit 857e22b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/kv/dynamodb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,13 @@ func (e *EntriesIterator) runQuery(limit int) {
}

queryInput.Limit = aws.Int32(int32(limit))

e.store.logger.
WithField("partition_key", e.partitionKey).
WithField("limit", limit).
WithField("exclusive_start_key", e.exclusiveStartKey).
WithField("start_key", e.startKey).
WithContext(e.scanCtx).
Trace("Performing DynamoDB query")
queryResult, err := e.store.svc.Query(e.scanCtx, queryInput)
const operation = "Query"
if err != nil {
Expand Down

0 comments on commit 857e22b

Please sign in to comment.