Skip to content

Commit

Permalink
Merge pull request #40 from AlmightyOatmeal/master
Browse files Browse the repository at this point in the history
Updated default timeout
  • Loading branch information
mpetazzoni authored Apr 4, 2018
2 parents 378698d + 8d25e46 commit 16f40a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Object `options` is an optional map and may contains following fields:
+ **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
+ **dimensions** - object, pre-defined dimensions for each datapoint and event. This object has key-value format `{ dimension_name: dimension_value, ...}`
+ **ingestEndpoint** - string, custom url to send datapoints in format http://custom.domain/api/path
+ **timeout** - number, sending datapoints timeout in ms (default is 1000ms)
+ **timeout** - number, sending datapoints timeout in ms (default is 5000ms)
+ **batchSize** - number, batch size to group sending datapoints
+ **userAgents** - array of strings, items from this array will be added to 'user-agent' header separated by comma
+ **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>`
Expand Down
2 changes: 1 addition & 1 deletion lib/client/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.DEFAULT_INGEST_ENDPOINT = 'https://ingest.signalfx.com';
exports.DEFAULT_API_ENDPOINT = 'https://api.signalfx.com';
exports.DEFAULT_SIGNALFLOW_WEBSOCKET_ENDPOINT = 'wss://stream.signalfx.com';
exports.DEFAULT_BATCH_SIZE = 300;// Will wait for this many requests before posting
exports.DEFAULT_TIMEOUT = 1000; // Default timeout is 1s
exports.DEFAULT_TIMEOUT = 5000; // Default timeout is 5s

// Whether to request SignalFlow WebSocket message compression.
exports.COMPRESS_SIGNALFLOW_WEBSOCKET_MESSAGES = true;
Expand Down

0 comments on commit 16f40a2

Please sign in to comment.