errors

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentError

func GetCurrentError(recoverData interface{}) *errors.Error

Get the current error with the fixed stacktrace

func GetCurrentStackTrace added in v0.1.13

func GetCurrentStackTrace(skip int) map[string]interface{}

Gets the current stacktrace

func LogPanic added in v0.1.13

func LogPanic(ctx context.Context, recoverData interface{}, skipFrames int)

Write log event with stacktrace in span using the recover data from panic

func WriteExceptionEvent added in v0.1.13

func WriteExceptionEvent(span opentracing.Span, recoverData interface{}, skipFrames int)

Write exception event in span using the recover data from panic

func WriteExceptionEventInRawSpan added in v0.1.13

func WriteExceptionEventInRawSpan(rawSpan *tracer.RawSpan, err **errors.Error)

Types

type StackFrames

type StackFrames struct {
	File       string
	LineNumber int
	Name       string
	Package    string
}

Jump to

Keyboard shortcuts

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