sentry

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, f func(context.Context) error)

Run sets up sentry, runs your func and then tears down sentry

func Setup

func Setup(env, dsn string) (func(), error)

Setup will initialize the sentry client and return a cleanup func to be used in a defer.Setup

Example:

f, e := sentry.Setup("...", "...")
if e != nil { ... }
defer f()

Types

This section is empty.

Jump to

Keyboard shortcuts

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