File tree 7 files changed +17
-16
lines changed
7 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ import (
13
13
"sync/atomic"
14
14
"time"
15
15
16
- "github.com/cenkalti/backoff/v4"
17
- "github.com/open-telemetry/opamp-go/internal"
16
+ "github.com/cenkalti/backoff/v5"
18
17
"google.golang.org/protobuf/proto"
19
18
20
19
"github.com/open-telemetry/opamp-go/client/types"
20
+ "github.com/open-telemetry/opamp-go/internal"
21
21
"github.com/open-telemetry/opamp-go/protobufs"
22
22
)
23
23
@@ -176,8 +176,6 @@ func (h *HTTPSender) sendRequestWithRetries(ctx context.Context) (*http.Response
176
176
177
177
// Repeatedly try requests with a backoff strategy.
178
178
infiniteBackoff := backoff .NewExponentialBackOff ()
179
- // Make backoff run forever.
180
- infiniteBackoff .MaxElapsedTime = 0
181
179
182
180
interval := time .Duration (0 )
183
181
Original file line number Diff line number Diff line change 9
9
"sync/atomic"
10
10
"time"
11
11
12
- "github.com/cenkalti/backoff/v4 "
12
+ "github.com/cenkalti/backoff/v5 "
13
13
"github.com/gorilla/websocket"
14
14
15
15
"github.com/open-telemetry/opamp-go/client/internal"
@@ -202,9 +202,6 @@ func (c *wsClient) tryConnectOnce(ctx context.Context) (retryAfter sharedinterna
202
202
func (c * wsClient ) ensureConnected (ctx context.Context ) error {
203
203
infiniteBackoff := backoff .NewExponentialBackOff ()
204
204
205
- // Make ticker run forever.
206
- infiniteBackoff .MaxElapsedTime = 0
207
-
208
205
interval := time .Duration (0 )
209
206
210
207
for {
Original file line number Diff line number Diff line change 1
1
module github.com/open-telemetry/opamp-go
2
2
3
- go 1.22
3
+ go 1.23
4
+
5
+ toolchain go1.23.2
4
6
5
7
require (
6
- github.com/cenkalti/backoff/v4 v4.3 .0
8
+ github.com/cenkalti/backoff/v5 v5.0 .0
7
9
github.com/google/uuid v1.6.0
8
10
github.com/gorilla/websocket v1.5.3
9
11
github.com/stretchr/testify v1.10.0
Original file line number Diff line number Diff line change 1
- github.com/cenkalti/backoff/v4 v4.3 .0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8 =
2
- github.com/cenkalti/backoff/v4 v4.3 .0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE =
1
+ github.com/cenkalti/backoff/v5 v5.0 .0 h1:4ziwFuaVJicDO1ah1Nz1aXXV1caM28PFgf1V5TTFXew =
2
+ github.com/cenkalti/backoff/v5 v5.0 .0/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw =
3
3
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
4
4
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
5
5
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ =
Original file line number Diff line number Diff line change 1
1
module github.com/open-telemetry/opamp-go/internal/examples
2
2
3
- go 1.22
3
+ go 1.23
4
+
5
+ toolchain go1.23.2
4
6
5
7
require (
6
- github.com/cenkalti/backoff/v4 v4.3 .0
8
+ github.com/cenkalti/backoff/v5 v5.0 .0
7
9
github.com/google/uuid v1.6.0
8
10
github.com/knadh/koanf v1.3.3
9
11
github.com/oklog/ulid/v2 v2.1.0
@@ -20,6 +22,7 @@ require (
20
22
)
21
23
22
24
require (
25
+ github.com/cenkalti/backoff/v4 v4.3.0 // indirect
23
26
github.com/davecgh/go-spew v1.1.1 // indirect
24
27
github.com/felixge/httpsnoop v1.0.4 // indirect
25
28
github.com/fsnotify/fsnotify v1.4.9 // indirect
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAm
15
15
github.com/bgentry/speakeasy v0.1.0 /go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs =
16
16
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8 =
17
17
github.com/cenkalti/backoff/v4 v4.3.0 /go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE =
18
+ github.com/cenkalti/backoff/v5 v5.0.0 h1:4ziwFuaVJicDO1ah1Nz1aXXV1caM28PFgf1V5TTFXew =
19
+ github.com/cenkalti/backoff/v5 v5.0.0 /go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw =
18
20
github.com/client9/misspell v0.3.4 /go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw =
19
21
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
20
22
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"sync/atomic"
12
12
"time"
13
13
14
- "github.com/cenkalti/backoff/v4 "
14
+ "github.com/cenkalti/backoff/v5 "
15
15
"github.com/google/uuid"
16
16
"github.com/knadh/koanf"
17
17
"github.com/knadh/koanf/parsers/yaml"
@@ -424,7 +424,6 @@ func (s *Supervisor) startAgent() {
424
424
// Prepare health checker
425
425
healthCheckBackoff := backoff .NewExponentialBackOff ()
426
426
healthCheckBackoff .MaxInterval = 60 * time .Second
427
- healthCheckBackoff .MaxElapsedTime = 0 // Never stop
428
427
if s .healthCheckTicker != nil {
429
428
s .healthCheckTicker .Stop ()
430
429
}
You can’t perform that action at this time.
0 commit comments