Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
08b79b6
Add TCP support
Jul 9, 2018
c0b0d47
Add TCP test suite
Jul 9, 2018
265b222
Unskip failing TCP test cases
Jul 10, 2018
69de8cb
Move setKeepAlive flag for TCP to createSocket function
Jul 10, 2018
b571d8c
Make TCP tests deterministic
Jul 11, 2018
c87dcf3
Simplify TCP server in tests
Jul 11, 2018
957411a
Do not add bytes to sentBytes when it is undefined
Jul 11, 2018
9c82ab4
Compare multiple metrics against an array, not single values
Jul 11, 2018
13bd3ea
Use correct global/local tag order in TCP test
Jul 11, 2018
456b2ac
Extract createTCP/UDPServer to test/helpers.js
Jul 12, 2018
e1c84bd
Extract #init tests to separate file
Jul 12, 2018
eb7cac1
Move newline addition to sendMessage
Jul 12, 2018
64d5c54
Add socket.destroy() to statsd.close() when using TCP
Jul 12, 2018
39c25ac
Handle TCP socket connection errors gracefully
Jul 12, 2018
0b9109a
Add createStatsdClient test helper
Jul 12, 2018
52a697c
Emit raw data from test TCP server
Jul 12, 2018
815a968
Add multiple client tests to #init
Jul 12, 2018
e9c617e
Extract #buffer tests to test/buffer.js
Jul 12, 2018
d91308d
Extract #globalTags tests to test/globalTags.js
Jul 12, 2018
e779962
Extract #timer tests to test/timer.js
Jul 12, 2018
26ad94a
Extract #sendAll tests to test/sendAll.js
Jul 12, 2018
ddbc5f7
Extract #close tests to test/close.js
Jul 12, 2018
ae15044
Aggregate all test suites in test/index.js
Jul 12, 2018
5979432
Whitespace fixes
Jul 12, 2018
3998a4a
Use consistent single quotes in lib/statsd.js
Jul 12, 2018
3c960d4
Merge branch 'master' into michalholasek/add-tcp-support
michalholasek Jul 12, 2018
08bec86
Whitespace fixes
Jul 12, 2018
ce3aefd
Make createStatsdClient node <6 friendly
Jul 12, 2018
6b780ca
Fix 'done() called multiple times' in test/close.js
Jul 12, 2018
e76fefb
Uncomment multiple clients in test/buffer.js
Jul 12, 2018
20a856b
Extract #send tests to test/send.js
Jul 13, 2018
24bd985
Extract #sendMessage tests to test/sendMessage.js
Jul 13, 2018
ce810eb
Extract #timing tests to test/timing.js
Jul 13, 2018
4ce7a1b
Extract stats functions tests to test/statsFunctions.js
Jul 13, 2018
082f84b
Remove unnecessary test/timing.js
Jul 13, 2018
014ab95
Fix test/sendMessage.js export function name
Jul 13, 2018
c815723
Whitespace fixes
Jul 13, 2018
cce0708
Fix statsFunctions suite description
Jul 13, 2018
74ab81c
Add pretest script back to package.json
Jul 13, 2018
ceddf7d
Fix lint errors
Jul 13, 2018
196dd6c
Extract #event tests to test/event.js
Jul 15, 2018
16634ff
Extract #check tests to test/check.js
Jul 15, 2018
29b7186
Extract child client specific tests to test/childClient.js
Jul 15, 2018
1e55f02
Do not run main client specific tests for child clients
Jul 15, 2018
2683b7b
Remove forgotten describe.only from test/childClient.js
Jul 15, 2018
ba0ab7b
Remove unnecessary test files
Jul 15, 2018
034b7b7
Add 'protocol' option to README.md
Jul 15, 2018
e0dd22c
Fix hanging tests
Jul 15, 2018
dee23b3
Pass instance as argument to createSocket function
Jul 17, 2018
fe2d446
Make sure protocol option is always lowercase
Jul 17, 2018
34215ff
Fix lint issues in test/**.js
Jul 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Parameters (specified as an options hash):
* `sampleRate`: Sends only a sample of data to StatsD for all StatsD methods. Can be overriden at the method level. `default: 1`
* `errorHandler`: A function with one argument. It is called to handle various errors. `default: none`, errors are thrown/logger to console
* `useDefaultRoute`: Use the default interface on a Linux system. Useful when running in containers
* `protocol`: Use `tcp` option for TCP protocol. Defaults to UDP otherwise

All StatsD methods other than event and close have the same API:
* `name`: Stat name `required`
Expand Down
Loading