All new code requires tests to ensure against regressions.
However, if your PR contains zero code changes, feel free to select the checkmark below to indicate so.
[X] Have you ran tests against this code?
[ ] This PR contains zero code changes.
Description of the Change
This PR works to simplify CallStacks.
The CallStack is a custom object of the SSO object. The CallStack keeps tracks of all calls made at each step of the endpoint, retaining their information and logging it to allow easy investigation.
Previously every call in a callstack was added each time an SSO object was returned. But this PR creates a CallStack class, which allows a few improvements over the old method:
Each endpoint keeps track of a callStack variable, that can be added during SSO creation. Ensuring totally accurate stacks
The timing details of a CallStack entry are much more accurate, or at least closer to showing runtime between steps, which can help optimization in the future.
We are now able to add custom events into the callstack, such as the init event.
We are now able to easily sanitize the data being added to the callstack. Which currently is used to ensure sensitive data is never logged.
Requirements
Filling out the template is required.
All new code requires tests to ensure against regressions.
[X] Have you ran tests against this code?
[ ] This PR contains zero code changes.
Description of the Change
This PR works to simplify
CallStacks
.The
CallStack
is a custom object of theSSO
object. TheCallStack
keeps tracks of all calls made at each step of the endpoint, retaining their information and logging it to allow easy investigation.Previously every call in a callstack was added each time an SSO object was returned. But this PR creates a
CallStack
class, which allows a few improvements over the old method:callStack
variable, that can be added during SSO creation. Ensuring totally accurate stacksCallStack
entry are much more accurate, or at least closer to showing runtime between steps, which can help optimization in the future.init
event.