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: go/grpcwebproxy/main.go
+28-3Lines changed: 28 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ import (
21
21
"github.com/sirupsen/logrus"
22
22
"github.com/spf13/pflag"
23
23
"golang.org/x/net/context"
24
-
_ "golang.org/x/net/trace"// register in DefaultServerMux
24
+
"golang.org/x/net/trace"// register in DefaultServerMux
25
25
"google.golang.org/grpc"
26
26
"google.golang.org/grpc/grpclog"
27
27
"google.golang.org/grpc/metadata"
@@ -44,6 +44,8 @@ var (
44
44
45
45
flagHttpMaxWriteTimeout=pflag.Duration("server_http_max_write_timeout", 10*time.Second, "HTTP server config, max write duration.")
46
46
flagHttpMaxReadTimeout=pflag.Duration("server_http_max_read_timeout", 10*time.Second, "HTTP server config, max read duration.")
47
+
48
+
enableRequestDebug=pflag.Bool("enable_request_debug", false, "whether to enable (/debug/requests) and connection(/debug/events) monitoring; also controls prometheus monitoring (/metrics)")
0 commit comments