Open cloudmagic80 opened 3 weeks ago
For this, we may want to take advantage of this new vets-api ZSF logging monitor class (subclass of this new logger) that was added recently by another team. We should be able to replace our existing logging using this interface, which will standardize the messages we see + give us more information.
We can create our own subclass of ::ZeroSilentFailures::Monitor
and start replacing the inner workings of our current tracking functions across the various models (e.g., track_user_identity
, track_current_user_loa
, etc).
Another note - it looks like our graph in DD is set up the same as Simple Forms' already. The issue is that when they receive an error, they throw an instance of SimpleFormsApi::Exceptions::ScrubbedUploadsSubmitError
, which has a message
member (which is what's supposed to be displayed in that @ERROR.MESSAGE
column. So that's something we'll need to either adapt or replace
department-of-veterans-affairs/vets-api#19370 department-of-veterans-affairs/vets-api#19253
Copy the "UploadsController#submit Errors" section from Simple Forms dashboard and adapt it to our needs.