bugsnag_stacktracer

package module
v0.0.0-...-f1a150a Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 2 Imported by: 0

README

bugsnag-stacktracer

bugsnag-stacktracer helps bridge the gap between the popular pkg/errors package's error stacktrace recording and bugsnag/bugsnag-go package's expected error stacktrace format.

Usage

Wrap your pkg/error stackTracer compatible error with bugsnag_stacktracer.FromError(err). The resulting bugsnag_stacktracer.Error will properly pass along your stacktrace to Bugsnag.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSkipFrames

func SetSkipFrames(sf int)

SetSkipFrames globally sets how many lines of the stacktrace are overhead by our logging/tracing solution

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func FromError

func FromError(err error) Error

FromStackTracer wraps an error that implements the github.com/pkg/errors stackTracer interface with a Bugsnag compatible error

func (Error) Error

func (e Error) Error() string

func (Error) StackFrames

func (e Error) StackFrames() []bugsnagerrors.StackFrame

func (Error) TypeName

func (Error) TypeName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳