Skip to content

Commit

Permalink
Wrap with kv slowdown err
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-har committed Apr 15, 2024
1 parent 1e6647b commit 6985568
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kv/dynamodb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func (s *Store) Get(ctx context.Context, partitionKey, key []byte) (*kv.ValueWit
if s.isSlowDownErr(err) {
s.logger.WithField("partition_key", partitionKey).WithContext(ctx).Error("get item: %w", kv.ErrSlowDown)
dynamoSlowdown.WithLabelValues(operation).Inc()
err = errors.Join(err, kv.ErrSlowDown)
}
return nil, fmt.Errorf("get item: %w", err)
}
Expand Down

0 comments on commit 6985568

Please sign in to comment.