@@ -230,10 +230,11 @@ Transactions that match any of the of the configured patterns will be ignored an
230
230
[options="header"]
231
231
|============
232
232
| Environment | Django/Flask | Default
233
- | `ELASTIC_APM_SERVER_TIMEOUT` | `SERVER_TIMEOUT` | `5 `
233
+ | `ELASTIC_APM_SERVER_TIMEOUT` | `SERVER_TIMEOUT` | `"5s" `
234
234
|============
235
235
236
- A timeout in seconds.
236
+ A timeout for requests to the APM Server.
237
+ The setting has to be provided in *<<config-format-duration, duration format>>*.
237
238
If a request to the APM server takes longer than the configured timeout,
238
239
the request is cancelled and the event (exception or transaction) is discarded.
239
240
Set to `None` to disable timeouts.
@@ -369,21 +370,6 @@ It contains the name of the field, and the name of the uploaded file, if provide
369
370
WARNING: request bodies often contain sensitive values like passwords, credit card numbers etc.
370
371
If your service handles data like this, we advise to only enable this feature with care.
371
372
372
- [float]
373
- [[config-flush-interval]]
374
- ==== `flush_interval`
375
-
376
- |============
377
- | Environment | Django/Flask | Default
378
- | `ELASTIC_APM_FLUSH_INTERVAL` | `FLUSH_INTERVAL` | `10`
379
- |============
380
-
381
- Interval with which transactions should be sent to the APM server, in seconds.
382
- A lower value will increase the load on your APM server,
383
- while a higher value can increase the memory pressure on your app.
384
- A higher value also impacts the time until transactions are indexed and searchable in Elasticsearch.
385
-
386
-
387
373
[float]
388
374
[[config-transaction-max-spans]]
389
375
==== `transaction_max_spans`
@@ -402,8 +388,8 @@ Setting an upper limit will prevent overloading the agent and the APM server wit
402
388
==== `span_frames_min_duration`
403
389
404
390
|============
405
- | Environment | Django/Flask | Default
406
- | `ELASTIC_APM_SPAN_FRAMES_MIN_DURATION` | `SPAN_FRAMES_MIN_DURATION` | `5 `
391
+ | Environment | Django/Flask | Default
392
+ | `ELASTIC_APM_SPAN_FRAMES_MIN_DURATION` | `SPAN_FRAMES_MIN_DURATION` | `"5ms" `
407
393
|============
408
394
409
395
In its default settings, the APM agent will collect a stack trace with every recorded span.
@@ -416,21 +402,42 @@ with durations equal or longer than the given value in milliseconds, e.g. 5 mill
416
402
417
403
To disable stack trace collection for spans completely, set the value to `0`.
418
404
405
+ Except for the special values `-1` and `0`,
406
+ this setting has to be provided in *<<config-format-duration, duration format>>*.
407
+
419
408
[float]
420
- [[config-max-queue -size]]
421
- ==== `max_queue_size `
409
+ [[config-api-request -size]]
410
+ ==== `api_request_size `
422
411
423
412
|============
424
- | Environment | Django/Flask | Default
425
- | `ELASTIC_APM_MAX_QUEUE_SIZE` | `MAX_QUEUE_SIZE` | `500`
413
+ | Environment | Django/Flask | Default
414
+ | `ELASTIC_APM_API_REQUEST_SIZE` | `API_REQUEST_TIME` | `"724kb"`
415
+ |============
416
+
417
+ Maximum queue length of the request buffer before sending the request to the APM server.
418
+ A lower value will increase the load on your APM server,
419
+ while a higher value can increase the memory pressure of your app.
420
+ A higher value also impacts the time until data is indexed and searchable in Elasticsearch.
421
+
422
+ This setting is useful to limit memory consumption if you experience a sudden spike of traffic.
423
+ It has to be provided in *<<config-format-size, size format>>*.
424
+
425
+ [float]
426
+ [[config-api-request-time]]
427
+ ==== `api_request_size`
428
+
429
+ |============
430
+ | Environment | Django/Flask | Default
431
+ | `ELASTIC_APM_API_REQUEST_SIZE` | `API_REQUEST_SIZE` | `"724kb"`
426
432
|============
427
433
428
- Maximum queue length of transactions before sending transactions to the APM server.
434
+ Maximum queue time of the request buffer before sending the request to the APM server.
429
435
A lower value will increase the load on your APM server,
430
436
while a higher value can increase the memory pressure of your app.
431
- A higher value also impacts the time until transactions are indexed and searchable in Elasticsearch.
437
+ A higher value also impacts the time until data is indexed and searchable in Elasticsearch.
432
438
433
439
This setting is useful to limit memory consumption if you experience a sudden spike of traffic.
440
+ It has to be provided in *<<config-format-duration, duration format>>*.
434
441
435
442
[float]
436
443
[[config-processors]]
@@ -551,3 +558,45 @@ By default, the agent verifies the SSL certificate if you use an HTTPS connectio
551
558
Verification can be disabled by changing this setting to `False`.
552
559
553
560
NOTE: SSL certificate verification is only available in Python 2.7.9+ and Python 3.4.3+.
561
+
562
+
563
+ [float]
564
+ [[config-formats]]
565
+ === Configuration formats
566
+
567
+ Some options require a unit, either duration or size.
568
+ These need to be provided in a specific format.
569
+
570
+ [float]
571
+ [[config-format-duration]]
572
+ ==== Duration format
573
+
574
+ The _duration_ format is used for options like timeouts.
575
+ The unit is provided as suffix directly after the number, without and separation by whitespace.
576
+
577
+ *Example*: `5ms`
578
+
579
+ *Supported units*
580
+
581
+ * `ms` (milliseconds)
582
+ * `s` (seconds)
583
+ * `m` (minutes)
584
+
585
+ [float]
586
+ [[config-format-size]]
587
+ ==== Size format
588
+
589
+ The _size_ format is used for options like maximum buffer sizes.
590
+ The unit is provided as suffix directly after the number, without and separation by whitespace.
591
+
592
+
593
+ *Example*: `10kb`
594
+
595
+ *Supported units*:
596
+
597
+ * `b` (bytes)
598
+ * `kb` (kilobytes)
599
+ * `mb` (megabytes)
600
+ * `gb` (gigabytes)
601
+
602
+ NOTE: we use the power-of-two sizing convention, e.g. `1 kilobyte == 1024 bytes`
0 commit comments