Skip to content

Commit dd1dbda

Browse files
committed
fix: use correct default value for apiRequestSize (#625)
### Checklist - [x] Implement code - [x] Update documentation
1 parent 17c153e commit dd1dbda

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/agent-api.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ Use the <<api-request-size,`apiRequestSize`>> config option to control the byte
569569
===== `apiRequestSize`
570570

571571
* *Type:* String
572-
* *Default:* `1mb`
572+
* *Default:* `750kb`
573573
* *Env:* `ELASTIC_APM_API_REQUEST_SIZE`
574574

575575
The agent maintains an open HTTP request to the APM Server that is used to transmit the collected transactions,

lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var DEFAULTS = {
3333
verifyServerCert: true,
3434
active: true,
3535
logLevel: 'info',
36-
apiRequestSize: '1mb', // TODO: Is this the right default
37-
apiRequestTime: '10s', // TODO: Is this the right default. Should this be ms?
36+
apiRequestSize: '750kb',
37+
apiRequestTime: '10s',
3838
stackTraceLimit: 50,
3939
captureExceptions: true,
4040
filterHttpHeaders: true,

test/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var optionFixtures = [
2828
['active', 'ACTIVE', true],
2929
['logLevel', 'LOG_LEVEL', 'info'],
3030
['hostname', 'HOSTNAME'],
31-
['apiRequestSize', 'API_REQUEST_SIZE', 1024 * 1024],
31+
['apiRequestSize', 'API_REQUEST_SIZE', 750 * 1024],
3232
['apiRequestTime', 'API_REQUEST_TIME', 10],
3333
['frameworkName', 'FRAMEWORK_NAME'],
3434
['frameworkVersion', 'FRAMEWORK_VERSION'],

0 commit comments

Comments
 (0)