Hi, so I've been trying to make a logging report for specific business flow in my application. Let's say it was a checkout process.
I want to record the full process between the first user load the page, and then whether their GPS has been loaded (for shipping address), and then when they tap button, whether they can submit the check out or not (referencing with client validation), and when they can submit the check out, it will check whether it succeded or fails.
so in main overview, it will be like this:
- opening the page (record)
- the gps has been loaded or not (record)
- when tapping the button, it should check if it’s blocked by client validation (record)
- if it’s not blocked by client validation and they tap the submit button, it should call HTTP request (record)
- and last it will record the respond of HTTP request whether it was success or failed
- if the HTTP request failed due to internet error, it also record.
With this scenario, from the documentation I’m trying to use Transaction as the parent (which is to wrap the whole checkout process), and the children (span) for every record.
Is this a correct way to do it, or there is another better way to achieve this?