Skip to content

Commit e3a77a6

Browse files
authored
Merge branch 'main' into explicit-seconds
2 parents f2cbcd9 + 61ee216 commit e3a77a6

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
@@ -604,7 +604,7 @@ class Config(_ConfigBase):
604604
"TRANSACTION_SAMPLE_RATE", type=float, validators=[PrecisionValidator(4, 0.0001)], default=1.0
605605
)
606606
transaction_max_spans = _ConfigValue("TRANSACTION_MAX_SPANS", type=int, default=500)
607-
stack_trace_limit = _ConfigValue("STACK_TRACE_LIMIT", type=int, default=500)
607+
stack_trace_limit = _ConfigValue("STACK_TRACE_LIMIT", type=int, default=50)
608608
span_frames_min_duration = _DurationConfigValue(
609609
"SPAN_FRAMES_MIN_DURATION", default=timedelta(seconds=0.005), unitless_factor=0.001
610610
)

0 commit comments

Comments
 (0)