Storage Api: Adds traces (#85391)

- adds traces and improved logging to the unified storage server
- add a configurable logger to the gRPC server service
This commit is contained in:
owensmallwood
2024-04-16 08:30:51 -06:00
committed by GitHub
parent a12669951b
commit 8c8885ef23
10 changed files with 262 additions and 67 deletions

View File

@@ -470,9 +470,10 @@ type Cfg struct {
RBACSingleOrganization bool
// GRPC Server.
GRPCServerNetwork string
GRPCServerAddress string
GRPCServerTLSConfig *tls.Config
GRPCServerNetwork string
GRPCServerAddress string
GRPCServerTLSConfig *tls.Config
GRPCServerEnableLogging bool // log request and response of each unary gRPC call
CustomResponseHeaders map[string]string
@@ -1756,6 +1757,7 @@ func readGRPCServerSettings(cfg *Cfg, iniFile *ini.File) error {
cfg.GRPCServerNetwork = valueAsString(server, "network", "tcp")
cfg.GRPCServerAddress = valueAsString(server, "address", "")
cfg.GRPCServerEnableLogging = server.Key("enable_logging").MustBool(false)
switch cfg.GRPCServerNetwork {
case "unix":
if cfg.GRPCServerAddress != "" {