Merge pull request #15069 from ktoso/wip-better-stats-keys

=pro all non-words must be replaced with _ for statsd keys
This commit is contained in:
Konrad Malawski 2014-04-29 11:01:02 +02:00
commit 164050ad4c

View file

@ -112,7 +112,7 @@ object TestExtras {
private def testTimerKey(det: Event): String = s"${det.fullyQualifiedName}.${testSelectorToId(det.selector)}"
private def testSelectorToId(sel: testing.Selector): String = sel.asInstanceOf[TestSelector].testName().replaceAll("[. ']", "_")
private def testSelectorToId(sel: testing.Selector): String = sel.asInstanceOf[TestSelector].testName().replaceAll("""[^\w]""", "_")
private def testCounterKey(det: Event, status: Status): String = s"${det.fullyQualifiedName}.${status.toString.toLowerCase}"