public static MetricsRecord createRecord ( MetricsContext context , String recordName ) { MetricsRecord metricsRecord = context . createRecord ( recordName ) ; metricsRecord . setTag ( "hostName" , getHostName ( ) ) ; return metricsRecord ; }
Utility method to create and return new metrics record instance within the given context . This record is tagged with the host name .