Skip to content

Commit 16f40a2

Browse files
authoredApr 4, 2018
Merge pull request #40 from AlmightyOatmeal/master
Updated default timeout
2 parents 378698d + 8d25e46 commit 16f40a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Object `options` is an optional map and may contains following fields:
4141
+ **enableAmazonUniqueId** - boolean, `false` by default. If `true`, library will retrieve Amazon unique identifier and set it as `AWSUniqueId` dimension for each datapoint and event. Use this option only if your application deployed to Amazon
4242
+ **dimensions** - object, pre-defined dimensions for each datapoint and event. This object has key-value format `{ dimension_name: dimension_value, ...}`
4343
+ **ingestEndpoint** - string, custom url to send datapoints in format http://custom.domain/api/path
44-
+ **timeout** - number, sending datapoints timeout in ms (default is 1000ms)
44+
+ **timeout** - number, sending datapoints timeout in ms (default is 5000ms)
4545
+ **batchSize** - number, batch size to group sending datapoints
4646
+ **userAgents** - array of strings, items from this array will be added to 'user-agent' header separated by comma
4747
+ **proxy** - string, defines an address and credentials for sending metrics through a proxy server. The string should have the following format `http://<USER>:<PASSWORD>@<HOST>:<PORT>`

‎lib/client/conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports.DEFAULT_INGEST_ENDPOINT = 'https://ingest.signalfx.com';
66
exports.DEFAULT_API_ENDPOINT = 'https://api.signalfx.com';
77
exports.DEFAULT_SIGNALFLOW_WEBSOCKET_ENDPOINT = 'wss://stream.signalfx.com';
88
exports.DEFAULT_BATCH_SIZE = 300;// Will wait for this many requests before posting
9-
exports.DEFAULT_TIMEOUT = 1000; // Default timeout is 1s
9+
exports.DEFAULT_TIMEOUT = 5000; // Default timeout is 5s
1010

1111
// Whether to request SignalFlow WebSocket message compression.
1212
exports.COMPRESS_SIGNALFLOW_WEBSOCKET_MESSAGES = true;

0 commit comments

Comments
 (0)
Please sign in to comment.