How to create request attribute based on JSON request header or response headers?

We have a customer who wants to get the response size of the request which can be found in the content-length of their JSON header. How can I capture that content length? Will it be good to create a request attribute or is there any other suggestions I can work on? That will help a lot.

@theharithsa Content-length is a HTTP response header and it’s possible to capture that with Dynatrace. It’s necessary to set up a request attribute with the desired scope (don’t forget to set it to the integer type).

Thanks Julius,

We have set it up and we got the answer.