Skip to content

Commit

Permalink
enabled profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh Shukla committed Dec 18, 2024
1 parent 657e26f commit 05dd2ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ var (
configFile = flag.String("configFile", "/app/config/config.yaml", "The file with the controller config")

otlpEndpoint = flag.String("otlp-endpoint", "", "OTLP collector endpoint")
traceToStdout = flag.Bool("traceToStdout", false, "log traces to stdout")
traceToStdout = flag.Bool("traceToStdout", true, "log traces to stdout")
traceRatio = flag.Float64("traceRatio", 0.01, "ratio of traces to create, if incoming request is not traced")
showversion = flag.Bool("version", false, "show the version and exit")
profile = flag.Bool("profile", false, "enable memory and CPU profiling")
profile = flag.Bool("profile", true, "enable memory and CPU profiling")

hostname = getHostname()

Expand Down
4 changes: 2 additions & 2 deletions app/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ var (

// eg, http://localhost:14268/api/traces
otlpEndpoint = flag.String("otlp-endpoint", "", "OTLP collector endpoint")
traceToStdout = flag.Bool("traceToStdout", false, "log traces to stdout")
traceToStdout = flag.Bool("traceToStdout", true, "log traces to stdout")
traceRatio = flag.Float64("traceRatio", 0.01, "ratio of traces to create, if incoming request is not traced")
showversion = flag.Bool("version", false, "show the version and exit")
profile = flag.Bool("profile", false, "enable memory and CPU profiling")
profile = flag.Bool("profile", true, "enable memory and CPU profiling")
generateControlTokens = flag.String("generate-control-tokens", "", "generate control tokens. Example: ground,mission")
generateAgentTokens = flag.String("generate-agent-tokens", "", "generate agent tokens. Example: agentsmith,agentbob,alice")

Expand Down

0 comments on commit 05dd2ff

Please sign in to comment.