Capture the Request Body of a POST Request in Dynatrace

Summary: Dynatrace can capture POST request bodies for deeper insight into transactions and API calls. This thread explains configuration steps, privacy considerations, and best practices for analysing request payloads securely.

Hi, I’ve a service monitored in Dynatrace and our front end makes a POST call to that service using an endpoint ‘/graphql’ and sends a Payload/Body.

I am trying to find some performance issues with my service, but the investigation is not leading anywhere unless we capture what is being sent in the request.

Is there a way to capture the payload in Purepath or elsewhere in Dynatrace to see what is being sent in the request? It would be ideal to understand which specific requests are affecting the application’s performance.

If I inspect the browser of my application, the payload appears as follows (it’s a JSON body) - screenshot-1.

BUT if I look at Dynatrac,e it just shows like this - screenshot-2


This is not currently possible. There is a RFE for capturing the POST body.

https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-capture-POST-Bodies/idi-p/150484

We have never captured the body of a request, due to both resource consumption and security concerns. The workaround that I have explored for this is to find a method that exposes the same information and access it through a request attribute.

Hi,
You may want to investigate business events to solve your use case

Blog:

Observability clinic

FYI:  @DanielMarschnig