cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

theharithsa
Dynatrace Champion
Dynatrace Champion

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. 

Love more, hate less; Technology for all, together we grow.
2 REPLIES 2

Julius_Loman
DynaMight Legend
DynaMight Legend

@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).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thanks Julius, 

We have set it up and we got the answer. 

Love more, hate less; Technology for all, together we grow.

Featured Posts