HTTP configuration optionsedit

CaptureHeaders (performance)edit

Environment variable nameIConfiguration key

ELASTIC_APM_CAPTURE_HEADERS

ElasticApm:CaptureHeaders

DefaultType

true

Boolean

If set to true, the agent will capture request and response headers, including cookies.

Note

Setting this to false reduces memory allocations, network bandwidth and disk space used by Elasticsearch.