Showing 2 of 2 total issues
Function main
has 82 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
ctx := context.Background()
listenAddr := flag.String("listen-addr", "127.0.0.1:3000", "server listen address")
logLevel := flag.String("log-level", os.Getenv("LOG_LEVEL"), "log level (debug, info, warn, error, fatal)")
Function Init
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func Init(ctx context.Context, listenAddr, logLevel *string, otelEnabled, statsvizEnabled *bool, tr trace.Tracer, traceProvider *trace.TracerProvider) {