Stacktrace configuration optionsedit

application_packagesedit

Used to determine whether a stack trace frame is an in-app frame or a library frame.

Default Type Dynamic

<none>

Collection

true

Java System Properties Environment

elastic.apm.application_packages

ELASTIC_APM_APPLICATION_PACKAGES

stack_trace_limitedit

Setting it to 0 will disable stack trace collection. Any positive integer value will be used as the maximum number of frames to collect. Setting it -1 means that all frames will be collected.

Default Type Dynamic

50

Integer

true

Java System Properties Environment

elastic.apm.stack_trace_limit

ELASTIC_APM_STACK_TRACE_LIMIT

span_frames_min_duration_msedit

In its default settings, the APM agent will collect a stack trace with every recorded span. While this is very helpful to find the exact place in your code that causes the span, collecting this stack trace does have some overhead. With the default setting, -1, stack traces will be collected for all spans. Setting it to a positive value, e.g. 5, will limit stack trace collection to spans with durations equal or longer than the given value in milliseconds, e.g. 5 milliseconds.

To disable stack trace collection for spans completely, set the value to 0.

Default Type Dynamic

5

Integer

true

Java System Properties Environment

elastic.apm.span_frames_min_duration_ms

ELASTIC_APM_SPAN_FRAMES_MIN_DURATION_MS