Go error tracking your coding agent can read

Updated 2026-11-13

Runheed accepts events from Sentry SDKs, so a Go service reports through sentry-go: point its DSN at your Runheed project and your coding agent reads each error over MCP from Claude Code, Cursor or any MCP client. Tested with sentry-go 0.50.

Set it up

  1. 1.Add the SDK.

    terminalbash
    go get github.com/getsentry/sentry-go
  2. 2.Initialize it with the project's Sentry SDK DSN (Projects page, or ask your agent: runheed_list_projects). Report errors you handle, and flush before the process exits.

    main.gogo
    package main
    
    import (
    	"os"
    	"time"
    
    	"github.com/getsentry/sentry-go"
    )
    
    func main() {
    	// RUNHEED_SENTRY_DSN=https://<key>@runheed.com/<number>
    	sentry.Init(sentry.ClientOptions{
    		Dsn:         os.Getenv("RUNHEED_SENTRY_DSN"),
    		Environment: os.Getenv("ENVIRONMENT"),
    		Release:     os.Getenv("GIT_SHA"),
    	})
    	defer sentry.Flush(2 * time.Second)
    
    	if err := chargeCard(order); err != nil {
    		sentry.CaptureException(err)
    	}
    }
  3. 3.Connect your agent, then sign in when it asks (other clients: /connect).

    terminalbash
    claude mcp add --transport http runheed https://runheed.com/api/mcp

The npm and PyPI releases are not out yet, so these commands install the same package files straight from runheed.com. Nothing else changes when the registry versions ship.

What it catches

  • Errors you report with sentry.CaptureException(err)
  • Panics you recover and report with sentry.Recover() or sentry.CurrentHub().Recover(r)
  • Release and environment from ClientOptions

What it does not do

  • Go returns errors instead of throwing them, so only errors you report are recorded
  • Tracing spans are accepted and dropped: Runheed tracks errors only

Then ask your agent

> what broke in production since the last deploy? fix the top one and resolve it with the commit hash

Connect Runheed first: Claude Code, Cursor or another client. Then see how the agent fixes and resolves an error.

Common Go errors

7-day trial, then $29/moOther agents and editorsCancel any time from the billing portal