=pro all non-words must be replaced with _, for statsd keys
This commit is contained in:
parent
d84d583585
commit
69ffd006cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue