sentry

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

sentry 对程序中的错误事件进行聚合分析.

用法: 1. 程序启动时, 调用 Init 初始化 sentry, 2. 程序退出时, 调用 Close 将数据刷盘. 建议在启动时将 close 函数添加到析构方法中.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Init

func Init(opts ...Option)

Types

type Option

type Option func(*sentry.ClientOptions)

--------------------------

func OptionBeforeSend

func OptionBeforeSend(fn func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event) Option

func OptionDSN

func OptionDSN(dsn string) Option

func OptionDebug

func OptionDebug() Option

func OptionIgnoreErrors

func OptionIgnoreErrors(errs []string) Option

func OptionSampleRate

func OptionSampleRate(rate float64) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL