Skip to content

Commit

Permalink
Update util/common/traces/generate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Chien <[email protected]>
  • Loading branch information
okankoAMZ and jefchien authored Oct 4, 2023
1 parent 6e2686a commit 96ade68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/common/traces/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func StartTraceGeneration(receiver string, agentConfigPath string, agentRuntime
cfg.Generator = xray.NewLoadGenerator(&xrayGenCfg)
cfg.Name = "xray-performance-test"
case "otlp":
panic("Only supports xray for now.")
default:
return fmt.Errorf("%s is not supported.", receiver)

Check failure on line 38 in util/common/traces/generate.go

View workflow job for this annotation

GitHub Actions / compile (ubuntu-latest)

undefined: fmt
default:

Check failure on line 39 in util/common/traces/generate.go

View workflow job for this annotation

GitHub Actions / compile (ubuntu-latest)

multiple defaults (first at util/common/traces/generate.go:37:4)
panic("Invalid trace receiver")
}
Expand Down

0 comments on commit 96ade68

Please sign in to comment.