Skip to content

Instantly share code, notes, and snippets.

@gsalgado
Created January 15, 2016 14:50
Show Gist options
  • Save gsalgado/07b8bec3e326582c7174 to your computer and use it in GitHub Desktop.
Save gsalgado/07b8bec3e326582c7174 to your computer and use it in GitHub Desktop.
statsd-bug
package main
import (
"fmt"
"github.com/quipo/statsd"
)
func main() {
statsdC := statsd.NewStatsdClient("localhost:8999", "foo.")
if err := statsdC.CreateSocket(); err != nil {
panic(err)
}
// This should not print nil if you don't have statsd listening on port
// 8999, but it does.
fmt.Println(statsdC.Incr("foo", 1))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment