mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user