To reduce bot traffic you must login to view /lordwelch/glauth/src/commit/cf09a689e030e705844595c6bd4cedd72a42f121/v2/pkg/logging/loghandler_windows.go.
The GitHub login only links via username.
Files

25 lines
433 B
Go

package tracing
import (
"github.com/rs/zerolog"
)
type Config struct {
OtelHTTPEndpoint string
OtelGRPCEndpoint string
Logger *zerolog.Logger
Enabled bool
}
func NewConfig(enabled bool, otelGRPCEndpoint, otelHTTPEndpoint string, logger *zerolog.Logger) *Config {
c := new(Config)
c.OtelGRPCEndpoint = otelGRPCEndpoint
c.OtelHTTPEndpoint = otelHTTPEndpoint
c.Logger = logger
c.Enabled = enabled
return c
}