Help us shape the future of Go! Take the 2026 Go Developer Survey

errorsxtest

package
v1.129.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errorsxtest helps tests check the origin stack that Sentry records for an error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorExceptions

func ErrorExceptions(err error) []sentry.Exception

ErrorExceptions returns the exceptions that Sentry records for err.

func ErrorOriginFunction

func ErrorOriginFunction(err error) string

ErrorOriginFunction returns OriginFunction of the exceptions that Sentry records for err.

func OriginFunction

func OriginFunction(exceptions []sentry.Exception) string

OriginFunction returns the innermost function of OriginStack, or "".

func OriginStack

func OriginStack(exceptions []sentry.Exception) []string

OriginStack returns the functions of the first stack in exceptions, innermost first. sentry-go orders exceptions root-first, so an origin stack comes before the stack of the capture site. It returns nil when no exception has a stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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