All skills
getsentry avatar

/sentry-go-sdk

@98a20d1

Full Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net/http, Gin, Echo, Fiber, FastHTTP, Iris, and Negroni.

Use this Skill: https://skilld.dev/gh/getsentry/sentry-agent-skills/sentry-go-sdk

This session only. Nothing lands on disk.

referencesprofiling.md

≈343 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Profiling — Sentry Go SDK

⚠️ Profiling is not available for Go.

Profiling support was added in v0.22.0 as an alpha feature and removed in v0.31.0 (breaking change). As of v0.43.0, ProfilesSampleRate does not exist in ClientOptions and the field will not compile.

Current Status

The Sentry Go SDK does not support transaction-based or continuous profiling. The /platforms/go/profiling/ documentation page returns 404.

// ❌ This does NOT compile on v0.31.0+
sentry.Init(sentry.ClientOptions{
    EnableTracing:      true,
    TracesSampleRate:   1.0,
    ProfilesSampleRate: 1.0,  // unknown field — compile error
})

Alternatives

For Go application profiling, use these standard approaches independently of Sentry:

pprof (stdlib):

import _ "net/http/pprof"

// Exposes /debug/pprof/ on your HTTP server
http.ListenAndServe(":6060", nil)

Continuous profiling services:

Check for Future Support

Monitor the sentry-go releases and docs.sentry.io/platforms/go/ for profiling to be re-introduced.

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides comprehensive instructions for setting up the Sentry SDK in Go applications. It includes discovery steps to detect project frameworks and logging libraries, provides installation commands for official Sentry packages, and offers detailed configuration references for Sentry features like error monitoring, tracing, metrics, and crons. The skill follows security best practices by recommending the use of environment variables for sensitive configuration like DSNs. No malicious patterns or security risks were identified.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    6/7 files flagged

Signed by skilld at 98a20d1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Dormantupdated 7 months ago

README badge

README badge for getsentry/sentry-agent-skills/sentry-go-sdk