APIM has to stop sending request and response size as attributes in traces to APM. As trace properties they are perfectly fine, just remove the "ATTR_" prefix!This is a defect; however, the workaround is given ..
The below change ensures the collected traces containing the Request Size and Response Size parameters without the ATTR prefix. It is based on find and replace using simple Evaluate Regular Expression assertion. Change is provided to the Layer7 Gateway policy and hence it will be immediately into effect as soon as the changed policy is saved and activated.
Note: Take a backup of the policy prior to editing it.
Steps to follow:
- Connect to the Layer7 Gateway using Policy Manager
- Select and expand the APM_Metrics folder in the Services/Policies tree
- Open APM_Traces policy
- Find out the Get Latency Metrics at Assertion Level assertion (Most likely at line 5) and Select it
- Select it and paste (Ctrl + V or Right Click and choose Paste option from the context menu)
- Copy the content of the attached template policy (regex.template.policy.xml) and paste it (Ctrl + V or right-click and choose Paste option from the context menu)
- You will see a new assertion (Evaluate Regular Expression) populated next to the assertion selected above.
- Save and Activate the policy from the Policy Editor toolbar