* feat: trace.error() implementation * refactor: Based on PR review * chore: adding error-handling guide * docs: fix typos