tfchain icon indicating copy to clipboard operation
tfchain copied to clipboard

Instrumentation: Refactor billing logic to improve auditability and log all major steps

Open sameh-farouk opened this issue 7 months ago • 1 comments

Currently, a lot of billing logic is hidden inside a black box. We don't have enough logs to audit any abnormal behavior in contract billing. Also, Things like overflowed calculations when encountered are handled implicitly without any logs.

The billing code is crucial and must be properly instrumented.

Benefits:

  • Easier identification and diagnosis of issues.
  • Gaining visibility into the application's behavior in production environments.

Additional context

https://github.com/threefoldtech/home/issues/1560

sameh-farouk avatar Jul 16 '24 13:07 sameh-farouk