utils

package
v1.1.5-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConnectErrorWithCode

func IsConnectErrorWithCode(err error, code connect.Code) bool

func NewSentryHook

func NewSentryHook() log.Hook

NewSentryHook initializes a new sentryHook with specified log levels.

Types

type SentryRunOptions

type SentryRunOptions struct {
	RoutineName string
	OnErrorFn   func()
}

SentryRunOptions is the options for running a function with Sentry local hub initialization.

func (SentryRunOptions) Run

func (o SentryRunOptions) Run(fn func(*sentry.Hub))

Run wraps a function with Sentry local hub initialization and runs it in a goroutine.

Jump to

Keyboard shortcuts

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