Skip to content

Commit

Permalink
Fix JSON syntax for Datadog host attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyTeardrop authored and jkschneider committed Nov 28, 2017
1 parent df908db commit 0d125ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private String writeMetric(Meter.Id id, long wallTime, double value) {
String host = config.hostTag() == null ? "" : stream(tags.spliterator(), false)
.filter(t -> config.hostTag().equals(t.getKey()))
.findAny()
.map(t -> ",\"host\":" + t.getValue())
.map(t -> ",\"host\":\"" + t.getValue() + "\"")
.orElse("");

String tagsArray = tags.iterator().hasNext() ?
Expand Down

0 comments on commit 0d125ae

Please sign in to comment.