Open
Description
Summary
Newlines in tag values are not escaped.
I'm not exactly sure if they can be escaped (?), but currently bad values are being inserted instead.
Steps to reproduce
Try to insert a point where a tag value contains a newline, e.g:
Point.measurement("measurement")
.tag("name", "foo\nbar") // Newline here
.addField("count", 1)
.time(0, SECONDS);
Actual behaviour
A new measurement bar
is created due to the following being sent
measurement,name=foo
bar count=1 0
Expected behaviour
I guess the line protocol sent should look something like this?
measurement,name=foo\
bar count=1 0
If it's not possible to escape newlines, there should be an error instead.