Skip to content

Commit 61ee216

Browse files
authored
Reduce stack_trace_limit default from 500 to 50 (#1492)
* Reduce stack_trace_limit default from 500 to 50 * CHANGELOG and docs * Fix PR number
1 parent 239ac76 commit 61ee216

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

‎CHANGELOG.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ endif::[]
4343
4444
* Fix Sanic integration to properly respect the `capture_body` config {pull}1485[#1485]
4545
* Lambda fixes to align with the cross-agent spec {pull}1489[#1489]
46+
* Change default for `stack_trace_limit` from 500 to 50 {pull}1492[#1492]
4647
4748
4849
[[release-notes-6.x]]

‎docs/configuration.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ Setting an upper limit will prevent edge cases from overloading the agent and th
656656
[options="header"]
657657
|============
658658
| Environment | Django/Flask | Default
659-
| `ELASTIC_APM_STACK_TRACE_LIMIT` | `STACK_TRACE_LIMIT` | `500`
659+
| `ELASTIC_APM_STACK_TRACE_LIMIT` | `STACK_TRACE_LIMIT` | `50`
660660
|============
661661

662662
This limits the number of frames captured for each stack trace.

‎elasticapm/conf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class Config(_ConfigBase):
574574
"TRANSACTION_SAMPLE_RATE", type=float, validators=[PrecisionValidator(4, 0.0001)], default=1.0
575575
)
576576
transaction_max_spans = _ConfigValue("TRANSACTION_MAX_SPANS", type=int, default=500)
577-
stack_trace_limit = _ConfigValue("STACK_TRACE_LIMIT", type=int, default=500)
577+
stack_trace_limit = _ConfigValue("STACK_TRACE_LIMIT", type=int, default=50)
578578
span_frames_min_duration = _ConfigValue(
579579
"SPAN_FRAMES_MIN_DURATION",
580580
default=5,

0 commit comments

Comments
 (0)