Hi community people,
I have a use case where I need to capture a custom error server side, via request attribute.
The custom error is available in a SAMLResponse comprise in the header value of a request that I'm monitoring via oneagent.
I could capture the SAMLResponse but I would need to convert it on Base64 to have a human readable request attribute [es. transforming the saml "3ijbr43i5jj346bi" in "Error n. 25"]
Is that something possible inside Dynatrace once I have the exact request under the oneagent full-stack monitoring?
Ps I ask again cause this answear is from 2017
Solved! Go to Solution.
No, it's not possible directly. However, if you can find a place in your code working with the error string in plain text, you could try to capture that on the method level - if it's in a supported language such as JAVA or .NET. It depends on the code and it might not be possible without code modification.
Or you can modify your code and send that request attribute from code using OneAgent SDK.
Or you will have to capture in Base64 and live with Base64 strings in Dynatrace UI, which not comfortable indeed. 🙂
The second may be achievable in your case, but you will need to read and understand the code. if it's java or net, it's often easily decompiled and you can likely find a place (class/method) to capture the value. It's often time consuming, but doable.
Method hotspots may give you a very good idea where to start looking in the code.