Write every trace to new line when using json transport

This commit is contained in:
Matija Petrunic 2021-09-16 16:42:18 +02:00
parent 941a0f7153
commit 9efa495b0e

View File

@ -36,6 +36,6 @@ func (jtt *jsonTracerTransport) Transport(evt TracerTransportEvent) error {
return fmt.Errorf("error while marshaling event: %s", err)
}
_, err = jtt.out.Write(jsonEvt)
_, err = jtt.out.WriteString(string(jsonEvt) + "\n")
return err
}