From 82c54ab12874abdfe4e7ebf6171fab108fce1b0d Mon Sep 17 00:00:00 2001 From: Nimrod Shlagman Date: Thu, 4 Nov 2021 15:47:37 +0200 Subject: [PATCH] fix(batch-default): mod consts and readme (#67) --- README.md | 4 ++-- packages/web/src/consts.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 447c9fc..c0e6a94 100644 --- a/README.md +++ b/README.md @@ -91,10 +91,10 @@ Advanced options can be configured as a parameter to the init() method. |propagateTraceHeaderUrls |Array|`*` |Which outgoing requests to add traceparent headers to. Defaults to all. | |urlPatternsToIgnore |Array|[] |Which outgoing requests to ignore (and not add traceparent to. Default to [] | |networkSamplingRatio|Float |1.0 |How many spans are exported, configured between 0.0 (send nothing) to 1.0 (send everything)| -|maxQueueSize |Integer|2048 |Maximum queue size, afterwhich spans are dropped | +|maxQueueSize |Integer|2048 |Maximum queue size (bytes), afterwhich spans are dropped | |scheduledDelayMillis|Integer|5000|Delay interval in milliseconds between two consecutive exports | |exportTimeoutMillis|Integer|30000|How many milliseconds the export can run before it is cancelled| -|maxBatchSize |Integer|512 |Maximum batch size of every export. Has to be small or equal to maxQueueSize| +|maxBatchSize |Integer|1024 |Maximum batch size (bytes) of every export. Has to be small or equal to maxQueueSize| |isEpsagonDisabled |Boolean|`false` |A flag to completely disable Epsagon (can be used for tests or locally) | |epsagonDebug |Boolean|`false` |Enable debug prints for troubleshooting. Note: if this flag is true, this will override the logLevel| |logLevel |String|`INFO` |The default Log level. Could be one of: ```DEBUG```, ```INFO```, ```WARN```, ```ERROR```, ```ALL```.| diff --git a/packages/web/src/consts.js b/packages/web/src/consts.js index 0faf274..886f695 100644 --- a/packages/web/src/consts.js +++ b/packages/web/src/consts.js @@ -5,7 +5,7 @@ const DEFAULT_CONFIGURATIONS = { collectorURL: 'https://opentelemetry.tc.epsagon.com/traces', pageLoadTimeout: 30000, redirectTimeout: 3000, - maxBatchSize: 512, + maxBatchSize: 1024, maxQueueSize: 2048, scheduledDelayMillis: 5000, exportTimeoutMillis: 30000,