Commit dfeb3648 authored by Annie Ke's avatar Annie Ke Committed by Liam Horne

rename dtl services to be metrics name compliant

parent 3c00d004
......@@ -26,7 +26,7 @@ export class BaseService<T> {
this.name = name
this.options = mergeDefaultOptions(options, optionSettings)
this.logger = new Logger({ name })
this.metrics = new Metrics({ prefix: name.split(' ').join('_') })
this.metrics = new Metrics({ prefix: name })
}
/**
......
......@@ -59,7 +59,7 @@ const optionSettings = {
export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
constructor(options: L1IngestionServiceOptions) {
super('L1 Ingestion Service', options, optionSettings)
super('L1_Ingestion_Service', options, optionSettings)
}
private state: {
......
......@@ -51,7 +51,7 @@ const optionSettings = {
export class L2IngestionService extends BaseService<L2IngestionServiceOptions> {
constructor(options: L2IngestionServiceOptions) {
super('L2 Ingestion Service', options, optionSettings)
super('L2_Ingestion_Service', options, optionSettings)
}
private state: {
......
......@@ -44,7 +44,7 @@ const optionSettings = {
// prettier-ignore
export class L1DataTransportService extends BaseService<L1DataTransportServiceOptions> {
constructor(options: L1DataTransportServiceOptions) {
super('L1 Data Transport Service', options, optionSettings)
super('L1_Data_Transport_Service', options, optionSettings)
}
private state: {
......
......@@ -55,7 +55,7 @@ const optionSettings = {
export class L1TransportServer extends BaseService<L1TransportServerOptions> {
constructor(options: L1TransportServerOptions) {
super('L1 Transport Server', options, optionSettings)
super('L1_Transport_Server', options, optionSettings)
}
private state: {
......
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