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:
commit
164050ad4c
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