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
* Make grpc reporter default and add retry
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Polish
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix port
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Polish
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Use higher retry
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Increase retry to 100
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Copy file name to clipboardexpand all lines: cmd/agent/app/reporter/grpc/flags.go
+6-1
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,21 @@ import (
24
24
const (
25
25
gRPCPrefix="reporter.grpc."
26
26
collectorHostPort=gRPCPrefix+"host-port"
27
+
retry=gRPCPrefix+"retry.max"
28
+
defaultMaxRetry=3
27
29
)
28
30
29
31
// Options Struct to hold configurations
30
32
typeOptionsstruct {
31
33
// CollectorHostPort is list of host:port Jaeger Collectors.
32
34
CollectorHostPort []string
35
+
MaxRetryuint
33
36
}
34
37
35
38
// AddFlags adds flags for Options.
36
39
funcAddFlags(flags*flag.FlagSet) {
37
-
flags.String(collectorHostPort, "", "(experimental) Comma-separated string representing host:port of a static list of collectors to connect to directly.")
40
+
flags.String(collectorHostPort, "", "Comma-separated string representing host:port of a static list of collectors to connect to directly.")
41
+
flags.Uint(retry, defaultMaxRetry, "Sets the maximum number of retries for a call.")
38
42
}
39
43
40
44
// InitFromViper initializes Options with properties retrieved from Viper.
0 commit comments