Skip to content

Commit

Permalink
Fix start span matchers slice flag (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Apr 22, 2024
1 parent ffa2752 commit 1288474
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/spancheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ func main() {
cfg.EnabledChecks = strings.Split(checkStrings, ",")
cfg.IgnoreChecksSignaturesSlice = strings.Split(ignoreCheckSignatures, ",")

cfg.StartSpanMatchersSlice = append(cfg.StartSpanMatchersSlice, strings.Split(extraStartSpanSignatures, ",")...)
if extraStartSpanSignatures != "" {
cfg.StartSpanMatchersSlice = append(cfg.StartSpanMatchersSlice, strings.Split(extraStartSpanSignatures, ",")...)
}

singlechecker.Main(spancheck.NewAnalyzerWithConfig(cfg))
}

0 comments on commit 1288474

Please sign in to comment.