Enable Response Body in APM securely?

Looking for enabling the APM Response body from Kibana or Observability UI instead of code

if not possible then how we can do it code but securely.

Kibana version: 9.3.4

Elasticsearch version: 9.3.4

APM Server version: v9.3.4

APM Agent language and version: nodejs (4.15.0, 4.6.0) , java (1.54.0,1.50.0) , opentelemetry/swift (1.6.0)

Application Frameworks: express (4.18.2,4.19.2), java ( java language 21.0.3), kafka, opentelemetry/swift

I think you are looking for some of these options: HTTP configuration options | APM Java agent - if not, please clarify your question further

Like we want to enabled the request response body's in in the transaction we have enabled the headers but want the what response was to that request in transactions with complete details currently we have the following in transaction:

  1. http.request.headers

  2. http.request.body.original

  3. http.response.headers

  4. we want to see the body of the response

    We have micro-services architecture and we need those responses of the request so we can identify the transactions and the issues.

Hi, you might need to go back and ingest the body further, body field is common in Otel schema, and it is message field with ESC. Both of them you can also ingest after the data already onboarded. The method tht the component called such as POPST/GET/PUT etc along with the component name or constituents are also found in these two fields. The new fields that we need for this type of monitoring are ordinarily nested very deep after in the top level. So we don't want field explosion but at the same time, we have the luxury of ingest first then parse. These two fields: body and message can sometimes be mistaken as keyword, instead of text and that can cause a bit of a trouble.