Skip to content

Proposal: Sentry / Error Reporter adapter for graz logger #274

Description

@grikomsn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions