Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
#112 more es document tag escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
alhardy committed Apr 15, 2017
1 parent cc2a012 commit d4aeabf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ public ElasticSearchReporterSettings()
? $"{metricName}".Replace(' ', '_').ToLowerInvariant()
: $"{metricContext}__{metricName}".Replace(' ', '_').ToLowerInvariant();
MetricTagValueFormatter = tagValue => tagValue.Replace("=", "\\=")
.Replace(" ", "\\ ")
.Replace(@"\", @"\\\")
.Replace(@"/", @"\\/")
.Replace(" ", "\\ ")
.Replace(",", "\\,");
}

Expand Down

0 comments on commit d4aeabf

Please sign in to comment.