Summary
Connect the existing pluggable ErrorReporter interface in the graz logger to production error tracking services like Sentry.
Current State
The logger ErrorReporter interface already exists in packages/graz/src/types/logger.ts and is wired into GrazLogger.error():
export interface ErrorReporter {
captureException: (error: Error, context?: { category?: string; context?: Record<string, unknown> }) => void;
}
A Sentry adapter package or integration guide would make this usable out of the box.
Motivation
- Production monitoring capability
- Better error visibility in production apps
- Structured error context (category, wallet type, chainId, etc.)
Source
Originally proposed in notes/legacy/LOGGER_DESIGN.md. The core logger implementation already exists in packages/graz/src/utils/logger.ts and packages/graz/src/types/logger.ts.
Priority: Low | Effort: Small | Status: Proposed
Summary
Connect the existing pluggable
ErrorReporterinterface in the graz logger to production error tracking services like Sentry.Current State
The logger
ErrorReporterinterface already exists inpackages/graz/src/types/logger.tsand is wired intoGrazLogger.error():A Sentry adapter package or integration guide would make this usable out of the box.
Motivation
Source
Originally proposed in
notes/legacy/LOGGER_DESIGN.md. The core logger implementation already exists inpackages/graz/src/utils/logger.tsandpackages/graz/src/types/logger.ts.Priority: Low | Effort: Small | Status: Proposed