diff --git a/util/common/traces/generate.go b/util/common/traces/generate.go index 74fbc71d7..e89c44742 100644 --- a/util/common/traces/generate.go +++ b/util/common/traces/generate.go @@ -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) default: panic("Invalid trace receiver") }