errors

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EventType      = "event"
	EventSource    = "source"
	EventMessage   = "message"
	EventStack     = "stack"
	EventException = "exception"
)

Variables

View Source
var MarkSpanAsError = errors.New("")

Functions

func GetCurrentError

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

Get the current error with the fixed stacktrace

func LogError

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

Write exception event in span using the recover data from panic

func LogErrorInRawSpan

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

Types

type StackFrames

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

func GetCurrentStackFrames

func GetCurrentStackFrames(skip int) []StackFrames

Gets the current stack frames array

Jump to

Keyboard shortcuts

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