# Apm capture response body

**URL:** <https://discuss.elastic.co/t/apm-capture-response-body/249990>\
**Category:** APM\
**Tags:** java\
**Created:** [September 25, 2020, 3:01pm UTC](https://discuss.elastic.co/t/apm-capture-response-body/249990 "2020-09-25T15:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yassine](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@yassine](https://discuss.elastic.co/u/yassine)\
**Post date:** [September 25, 2020, 3:01pm UTC](https://discuss.elastic.co/t/apm-capture-response-body/249990/1 "2020-09-25T15:01:42Z")

</div>

hey community,

i use apm agent java version 1.18.0 and i dont know ,does the agent support the capture of the response body?

Your SinceRELY

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [September 28, 2020, 2:30pm UTC](https://discuss.elastic.co/t/apm-capture-response-body/249990/2 "2020-09-28T14:30:12Z")

</div>

Hi @yassine,

No, we only capture _request body_ at the moment.

Capturing the response body is likely to have a huge performance impact, thus I'm not sure how it could be used in practice.

What is your use-case ? If it's debugging slow request/response, can you identify those with request attributes ? something like HTTP headers, request parameters, URL path ?

---

<div class="post-metadata">

**Author:** ![yassine](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@yassine](https://discuss.elastic.co/u/yassine)\
**Post date:** [September 29, 2020, 12:45pm UTC](https://discuss.elastic.co/t/apm-capture-response-body/249990/3 "2020-09-29T12:45:46Z")

</div>

first of all , thank you for your feedback.  
the objectove of having the response body is to facilitate the analysis of the differents calls to the microservices.in order to make the analysis more flexible but aftern some reflection, i think will be able to reproduce the same callss with use the request body and the header metadata call.

generally the response body and more voluminous which can eventually cause performance problems.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 20, 2020, 8:45am UTC](https://discuss.elastic.co/t/apm-capture-response-body/249990/4 "2020-10-20T08:45:47Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
