import { Logger } from "../logger/SFPLogger" ; export abstract class NativeMetricSender { constructor ( protected logger ) { } abstract initialize ( apiHost , apiKey ) ; abstract sendGaugeMetric ( metric , value , tags ) ; abstract sendCountMetric ( metric , tags ) ; protected transformTagsToStringArray ( tags ) { if ( tags != null && ! Array . isArray ( tags ) ) { let transformedTagArray = new Array ( ) ; for ( const [ key , value ] of Object . entries ( tags ) ) { transformedTagArray . push ( `${ key }:${ value }` ) ; } return transformedTagArray ; } return tags as string [ ] ; } }