Commit 3c00d004 authored by Annie Ke's avatar Annie Ke Committed by Liam Horne

format name to be valid metric prefix

parent 3bd6cb07
...@@ -26,7 +26,7 @@ export class BaseService<T> { ...@@ -26,7 +26,7 @@ export class BaseService<T> {
this.name = name this.name = name
this.options = mergeDefaultOptions(options, optionSettings) this.options = mergeDefaultOptions(options, optionSettings)
this.logger = new Logger({ name }) this.logger = new Logger({ name })
this.metrics = new Metrics({ prefix: name }) this.metrics = new Metrics({ prefix: name.split(' ').join('_') })
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment