You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v1/brokers/sqs/sqs.go
+24-12Lines changed: 24 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ import (
5
5
"encoding/json"
6
6
"errors"
7
7
"fmt"
8
+
"math/rand"
8
9
"strconv"
9
10
"strings"
10
11
"sync"
@@ -26,6 +27,7 @@ import (
26
27
const (
27
28
maxAWSSQSDelay=time.Minute*15// Max supported SQS delay is 15 min: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html
28
29
maxAWSSQSVisibilityTimeout=time.Hour*12// Max supported SQS visibility timeout is 12 hours: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ChangeMessageVisibility.html
30
+
logSQSReceiveSampleRate=0.0001// 0.01% of messages received from SQS will be logged
0 commit comments