Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): add dingo-trace-injections flag, which switches injection tracing #455

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@

app.flagset = flag.NewFlagSet("flamingo", flag.ContinueOnError)
dingoTraceCircular := app.flagset.Bool("dingo-trace-circular", false, "enable dingo circular tracing")
dingoTraceInjections := app.flagset.Bool("dingo-trace-injections", false, "enable dingo injection tracing")
flamingoConfigLog := app.flagset.Bool("flamingo-config-log", false, "enable flamingo config logging")
flamingoConfigCueDebug := app.flagset.String("flamingo-config-cue-debug", "", "query the flamingo cue config loader (use . for root)")
flamingoContext := app.flagset.String("flamingo-context", app.defaultContext, "set flamingo execution context")
Expand All @@ -136,6 +137,10 @@
dingo.EnableCircularTracing()
}

if dingoTraceInjections != nil && *dingoTraceInjections {
dingo.EnableInjectionTracing()

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Tests (1.22)

undefined: dingo.EnableInjectionTracing

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Static checks

undefined: dingo.EnableInjectionTracing

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / lint

undefined: dingo.EnableInjectionTracing (typecheck)

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / lint

undefined: dingo.EnableInjectionTracing) (typecheck)

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / lint

undefined: dingo.EnableInjectionTracing) (typecheck)

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / lint

undefined: dingo.EnableInjectionTracing) (typecheck)

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Tests (1.x)

undefined: dingo.EnableInjectionTracing

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Tests (1.x)

undefined: dingo.EnableInjectionTracing

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Coverage Report

undefined: dingo.EnableInjectionTracing

Check failure on line 141 in app.go

View workflow job for this annotation

GitHub Actions / Coverage Report

undefined: dingo.EnableInjectionTracing
}

modules = append([]dingo.Module{
new(framework.InitModule),
app.loggerModule,
Expand Down
Loading