/** * Utility method to create and return new metrics record instance within the * given context. This record is tagged with the host name. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ 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. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ 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. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ 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. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ 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. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ 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. * * @param context the context * @param recordName name of the record * @return newly created metrics record */ public static MetricsRecord createRecord(MetricsContext context, String recordName) { MetricsRecord metricsRecord = context.createRecord(recordName); metricsRecord.setTag("hostName", getHostName()); return metricsRecord; }