Mandate the use of -ssf with trace IDs in veneur-emit
Since v-e can't autodetect what the other party is expecting, we must
have users be explicit about what to send.
@@ -131,6 +131,10 @@ func main() {
Fatal("Couldn't set up the main span")
}
if span.TraceId != 0 {
+ if !*toSSF {
+ logrus.WithField("ssf", *toSSF).
+ Fatal("Can's use tracing in non-ssf operation: Use -ssf to emit trace spans.")
+ }
logrus.WithField("trace_id", span.TraceId).
WithField("span_id", span.Id).
WithField("parent_id", span.ParentId).
