smira / go-statsd

Go statsd client library with zero allocation overhead, great performance and reconnects
MIT License
109 stars 18 forks source link

make `Tag` and `TagType` public #25

Closed gfreezy closed 4 years ago

gfreezy commented 4 years ago
// Tag types
const (
    typeString = iota
    typeInt64
)

// Tag is metric-specific tag
type Tag struct {
    name     string
    strvalue string
    intvalue int64
    typ      byte
}

We need to sanitize tag names and values.

smira commented 4 years ago

Please feel free to submit a PR, not sure what do you mean by we need to sanitize tag names and values