Configure 1s backoff in metrics package
When gRPC cannot connect, it will use an aggressive retry strategy, which
results in a massive amount of log output. This commit configures gRPC to use
a 1 second delay between retry commits.
@@ -89,6 +89,7 @@ func Setup(opts ...SetOpts) {
for _, opt := range opts {
opt(conf)
}
+ conf.dialOpts = append(conf.dialOpts, grpc.WithBackoffMaxDelay(1*time.Second))
batchBuffer = diodes.NewManyToOneEnvelopeV2(1000, diodes.AlertFunc(func(missed int) {
log.Printf("dropped metrics %d", missed)
