đŸ”Ŧ

Sentry

v1.3.0Apache 2.0

Best practices and patterns for Sentry error monitoring and observability.

Installation

Install han binary (required for hooks to work):

curl -fsSL https://han.guru/install.sh | bash

Then install this plugin:

han plugin install sentry

Overview

Best practices and patterns for Sentry error monitoring and observability.

What This Plugin Provides

Validation Hooks

  • Sentry Info: Verifies sentry-cli configuration and authentication using sentry-cli info

Skills

This plugin provides the following skills:

  • SDK Configuration: Initialization, integrations, sampling, filtering
  • Error Capturing: Exception handling, context, breadcrumbs, fingerprinting
  • Performance Monitoring: Transactions, spans, distributed tracing, metrics
  • Release Management: Source maps, deployments, release health
  • Alerts & Issues: Alert rules, issue triage, notifications, integrations

Installation

Install via the Han marketplace:

bash
han plugin install sentry

Usage

Once installed, this plugin provides skills for Sentry best practices. The validation hook verifies your sentry-cli configuration is correct.

Requirements

  • sentry-cli installed
  • .sentryclirc or sentry.properties configuration file
  • Valid Sentry authentication token

Configuration

Create .sentryclirc in your project root:

ini
[defaults]
org = your-org
project = your-project

[auth]
token = your-auth-token

Or use environment variables:

bash
export SENTRY_ORG=your-org
export SENTRY_PROJECT=your-project
export SENTRY_AUTH_TOKEN=your-auth-token

Skills

Hooks

âš ī¸

Token Usage Notice

Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.

🛑

Stop

Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.

sentry-cli info