From 41079d943123d6323242b37fb4f494db07ca5d7c Mon Sep 17 00:00:00 2001 From: Jonathan Prates Date: Fri, 4 May 2018 22:07:12 -0300 Subject: [PATCH] chore: add version --- reporter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reporter.go b/reporter.go index c9bf709..33ce2f3 100644 --- a/reporter.go +++ b/reporter.go @@ -15,7 +15,8 @@ type Reporter struct { // Conn is a UDP connection to logstash. Conn *net.UDPConn // Name of this reporter - Name string + Name string + Version string percentiles []float64 p []string @@ -42,6 +43,7 @@ func NewReporter(r metrics.Registry, addr string, name string) (*Reporter, error Conn: conn, Registry: r, Name: name, + Version: "0.1.0", udpAddr: udpAddr, percentiles: []float64{0.50, 0.75, 0.95, 0.99, 0.999},