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: router/cmd/main.go
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,11 @@ import (
26
26
)
27
27
28
28
var (
29
-
overrideEnvFlag=flag.String("override-env", os.Getenv("OVERRIDE_ENV"), "Path to .env file to override environment variables")
30
-
routerVersion=flag.Bool("version", false, "Prints the version and dependency information")
31
-
pprofListenAddr=flag.String("pprof-addr", os.Getenv("PPROF_ADDR"), "Address to listen for pprof requests. e.g. :6060 for localhost:6060")
32
-
pyroscopeAddr=flag.String("pyroscope-addr", os.Getenv("PYROSCOPE_ADDR"), "Address to use for pyroscope continuous profiling. e.g. http://localhost:4040")
29
+
overrideEnvFlag=flag.String("override-env", os.Getenv("OVERRIDE_ENV"), "Path to .env file to override environment variables")
30
+
routerVersion=flag.Bool("version", false, "Prints the version and dependency information")
31
+
pprofListenAddr=flag.String("pprof-addr", os.Getenv("PPROF_ADDR"), "Address to listen for pprof requests. e.g. :6060 for localhost:6060")
32
+
pyroscopeAddr=flag.String("pyroscope-addr", os.Getenv("PYROSCOPE_ADDR"), "Address to use for pyroscope continuous profiling. e.g. http://localhost:4040")
33
+
logServiceName=flag.String("log-service-name", os.Getenv("LOG_SERVICE_NAME"), "Service name to use in logs, defaults to @wundergraph/router")
33
34
34
35
memProfilePath=flag.String("memprofile", "", "Path to write memory profile. Memory is a snapshot taken at the time the program exits")
35
36
cpuProfilePath=flag.String("cpuprofile", "", "Path to write cpu profile. CPU is measured from when the program starts until the program exits")
0 commit comments