trace

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic

func CatchPanic(component string)

CatchPanic should be called from all go-routines to ensure proper stack trace reporting

func Init added in v0.0.10

func Init(dir string) error

Init is called after reading the configuration to set a persistent location. (i.e. config_paths.data_dir should be persistent even within containers) If not called, the default is /tmp or equivalent

func List added in v0.0.10

func List() ([]string, error)

List returns a list of all collected files

func WriteStackTrace

func WriteStackTrace(iErr any) (string, error)

WriteStackTrace writes a stack trace to a file and returns the path

Types

This section is empty.

Jump to

Keyboard shortcuts

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