Internal improvements to error handling and observability | Sanity Docs