sentry-go-sdk

Integrate the Sentry Go SDK for error tracking, tracing, and logging.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill sentry-go-sdk-himanshu040604
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-go-sdk
Source: https://github.com/Himanshu040604/codex-skills-setup/tree/main/assets/codex/skills/claude-import/skills/plugins/sentry%40claude-plugins-official/skills/sentry-go-sdk
Command: npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill sentry-go-sdk-himanshu040604

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github.com/getsentry/sentry-go, github.com/getsentry/sentry-go/http, github.com/getsentry/sentry-go/gin, github.com/getsentry/sentry-go/echo, github.com/getsentry/sentry-go/fiber, github.com/getsentry/sentry-go/fasthttp, github.com/getsentry/sentry-go/iris, github.com/getsentry/sentry-go/negroni, github.com/getsentry/sentry-go/logrus, github.com/getsentry/sentry-go/slog, github.com/getsentry/sentry-go/zap, github.com/getsentry/sentry-go/zerolog, github.com/getsentry/sentry-go/otel, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you integrate Sentry error monitoring, tracing, and logging into your Go applications, ensuring you can quickly identify and resolve issues in production.

Core Features & Use Cases

  • Error Monitoring: Automatically capture panics, unhandled exceptions, and reported errors.
  • Distributed Tracing: Track requests as they flow through your application and across services.
  • Logging: Send structured logs to Sentry for easier debugging and analysis.
  • Use Case: You've just deployed a new Go microservice, and you want to ensure you're alerted immediately if any errors occur in production and can trace the request flow that led to the error.

Quick Start

Add Sentry error monitoring and tracing to your Go project by running the go get commands for the core SDK and relevant framework middleware.

Frequently Asked Questions about sentry-go-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Sentry error monitoring to my Go application?

To add Sentry error monitoring to your Go application, integrate the Sentry Go SDK to automatically capture panics, unhandled exceptions, and reported errors. This enables immediate production alerts and detailed event capture for debugging.

Does the Sentry Go SDK support web frameworks like Gin and Echo for distributed tracing?

Yes, the Sentry Go SDK supports distributed tracing and error tracking for web frameworks like Gin, Echo, Fiber, Fasthttp, and Iris. This allows you to track requests as they flow through your application and across microservices.

Can I send structured logs from Zap or Logrus to Sentry for debugging?

Yes, you can send structured logs to Sentry for easier debugging and analysis. The Sentry Go SDK integrates with logging libraries including Logrus, Zap, Zerolog, and slog to facilitate automated error reporting and performance monitoring.

What is the best way to trace requests across Go microservices using Sentry?

The best way to trace requests across Go microservices using Sentry is by implementing the Sentry Go SDK with distributed tracing. It tracks request flows through your application and across services, providing detailed trace analysis to resolve production issues.

Do I need OpenTelemetry to use Sentry for performance monitoring in Go?

You do not strictly need OpenTelemetry to use Sentry for performance monitoring in Go, as the Sentry Go SDK provides built-in tracing. However, the SDK includes an OpenTelemetry integration for combining Sentry event capture with existing tracing infrastructure.