sentry

package module
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: BSD-2-Clause Imports: 10 Imported by: 35

README

Sentry

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyRoundTripper

func NewProxyRoundTripper(
	roundtripper http.RoundTripper,
	url string,
) http.RoundTripper

NewProxyRoundTripper allow overwrite sentry host without modifing the alert content.

func NewSkipErrorAndReport

func NewSkipErrorAndReport(sentryClient Client, action run.Runnable) run.Func

Types

type Client

type Client interface {
	CaptureMessage(
		message string,
		hint *sentry.EventHint,
		scope sentry.EventModifier,
	) *sentry.EventID
	CaptureException(
		exception error,
		hint *sentry.EventHint,
		scope sentry.EventModifier,
	) *sentry.EventID
	Flush(timeout stdtime.Duration) bool
	io.Closer
}

func NewClient

func NewClient(
	ctx context.Context,
	clientOptions sentry.ClientOptions,
	excludeErrors ...ExcludeError,
) (Client, error)

type ExcludeError

type ExcludeError func(err error) bool

type ExcludeErrors

type ExcludeErrors []ExcludeError

func (ExcludeErrors) IsExcluded

func (e ExcludeErrors) IsExcluded(err error) bool

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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