Created
January 15, 2016 14:50
-
-
Save gsalgado/07b8bec3e326582c7174 to your computer and use it in GitHub Desktop.
statsd-bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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