This configuration is a config for server side, it means, if request is done, you are capturing that information. No matter if requests was starting for a synthetic script, you using curl/postman or a end user in the web interface.
If you want to use only Synthetics, you can do it if you can do it using Javascript, if not, it is not possible.
You have differents options in Dynatrace but you need to know where is data and how to ingest it. If you know that particular piece information is in some method answer, method parameter, that request attribute will be useful.