pystatsd icon indicating copy to clipboard operation
pystatsd copied to clipboard

Add support for custom back-ends

Open mayconbordin opened this issue 11 years ago • 2 comments

I've changed the server implementation in order to support custom back-ends. It reduces the amount of configuration for the server as well as simplifies the code as there's no need for checking which transport is to be used.

mayconbordin avatar Nov 24 '14 17:11 mayconbordin

I like the idea, however would like to see more tests exercising the new backend types, and confirm that no breakage is going to happen for current users.

sivy avatar Dec 16 '14 23:12 sivy

I've included tests for the server and all the back-ends. I've also modified the ServerDaemon to start using the back-ends instead of giving all the options to the Server, the run_server arguments remain the same, with the only addition of the --delete-gauges argument.

The Server interface has changed only in the constructor, it's more simple now. But I'm assuming most people run the server as a daemon, in this case nothing has changed.

mayconbordin avatar Jan 11 '15 12:01 mayconbordin