Skip to content

Commit 8cdfcd8

Browse files
authored
Skip generation of stacktraces for APM spans. (#137435)
For ES, these stacktraces are generally of fairly little use as these would almost always point to APMTracer.stopTrace being called from TaskManager.unregister. Because of above and as part of the effort to reduce costs of tracing and make it more lightweight, we should just not include stacktraces at all. Relates to ES-12935
1 parent 071d549 commit 8cdfcd8

File tree

1 file changed

+4
-1
lines changed
  • distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli

1 file changed

+4
-1
lines changed

distribution/tools/server-cli/src/main/java/org/elasticsearch/server/cli/APMJvmOptions.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ class APMJvmOptions {
8181
"metrics_interval", "120s",
8282
"breakdown_metrics", "false",
8383
"central_config", "false",
84-
"transaction_sample_rate", "0.2"
84+
"transaction_sample_rate", "0.2",
85+
// Don't collect stacktraces for spans, typically these are of little use as
86+
// always pointing to APMTracer.stopTrace invoked from TaskManager
87+
"stack_trace_limit", "0"
8588
);
8689
// end::noformat
8790

0 commit comments

Comments
 (0)