百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sentry-go

> 后端框架
开源

Sentry 的官方 Go SDK (sentry.io)

1.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Sentry 的官方 Go SDK (sentry.io)

Official Sentry SDK for Go

sentry-go provides a Sentry client implementation for the Go programming language. This is the next generation of the Go SDK for Sentry, intended to replace the raven-go package.

Looking for the old raven-go SDK documentation? See the Legacy client section here. If you want to start using sentry-go instead, check out the migration guide.

Requirements

The only requirement is a Go compiler.

We follow Go's official release policy, supporting the two most recent Go releases. Each major Go release is supported until there are two newer major releases. The exact versions are defined in GitHub workflow.

In addition, we run tests against the current master branch of the Go toolchain, though support for this configuration is best-effort.

Installation

sentry-go can be installed like any other Go library through go get:

$ go get github.com/getsentry/sentry-go@latest

Check out the list of released versions.

Configuration

To use sentry-go, you’ll need to import the sentry-go package and initialize it with your DSN and other options.

If not specified in the SDK initialization, the DSN, Release and Environment are read from the environment variables SENTRY_DSN, SENTRY_RELEASE and SENTRY_ENVIRONMENT, respectively.

More on this in the Configuration section of the official Sentry Go SDK documentation.

Usage

The SDK supports reporting errors and tracking application performance.

To get started, have a look at one of our examples:

  • Basic error instrumentation
  • Error and tracing for HTTP servers

We also provide a complete API reference.

For more detailed information about how to get the most out of sentry-go, check out the official documentation:

  • Sentry Go SDK documentation
  • Guides:
    • net/http
    • echo
    • fasthttp
    • fiber
    • gin
    • iris
    • logrus
    • negroni
    • slog
    • zerolog

Resources

  • Bug Tracker
  • GitHub Project

License

Licensed under The MIT License, see LICENSE.

Community

Join Sentry's #go channel on Discord to get involved and help us improve the SDK!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gocrash-reportingcrash-reportserror-monitoringgo

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架