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 Property file Environment

elastic.apm.application_packages

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 Property file Environment

elastic.apm.stack_trace_limit

stack_trace_limit

ELASTIC_APM_STACK_TRACE_LIMIT

span_frames_min_durationedit

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. When setting this option to -1, stack traces will be collected for all spans. Setting it to a positive value, e.g. 5ms, will limit stack trace collection to spans with durations equal or longer than the given value, e.g. 5 milliseconds.

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

Supports the duration suffixes ms, s and m. Example: 5ms. The default unit for this option is ms

Default Type Dynamic

5ms

TimeDuration

true

Java System Properties Property file Environment

elastic.apm.span_frames_min_duration

span_frames_min_duration

ELASTIC_APM_SPAN_FRAMES_MIN_DURATION