src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbTelnet.java
@Override
	public void send(Set<OpenTsdbMetric> metrics) {
		if (metrics.isEmpty())
			return;

		Writer writer = null;
		try {
			writer = this.writerFactory.getWriter();
			write(metrics, writer);
		} catch (Exception e) {
			if (logger.isDebugEnabled()) {
				logger.debug("Error writing codahale metrics", e);
			} else {
				logger.warn("Error writing codahale metrics: {}", e.getMessage());
			}
		} finally {
			if (writer != null) {
				try {
					writer.close();
				} catch (IOException e) {
					logger.error("Error while closing writer:", e);
				}
			}
		}
	}
@Override
	public void send(Set<OpenTsdbMetric> metrics) {
		if (metrics.isEmpty())
			return;

		Writer writer = null;
		try {
			writer = this.writerFactory.getWriter();
			write(metrics, writer);
		} catch (Exception e) {
			if (logger.isDebugEnabled()) {
				logger.debug("Error writing codahale metrics", e);
			} else {
				logger.warn("Error writing codahale metrics: {}", e.getMessage());
			}
		} finally {
			if (writer != null) {
				try {
					writer.close();
				} catch (IOException e) {
					logger.error("Error while closing writer:", e);
				}
			}
		}
	}
@ Override public void send ( Set < OpenTsdbMetric > metrics ) { if ( metrics . isEmpty ( ) ) return ; Writer writer = null ; try { writer = this . writerFactory . getWriter ( ) ; write ( metrics , writer ) ; } catch ( Exception e ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Error writing codahale metrics" , e ) ; } else { logger . warn ( "Error writing codahale metrics: {}" , e . getMessage ( ) ) ; } } finally { if ( writer != null ) { try { writer . close ( ) ; } catch ( IOException e ) { logger . error ( "Error while closing writer:" , e ) ; } } } }
send a set of metrics to opentsdb

@param metrics
send a set of metrics to opentsdb