trace

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchPanic deprecated

func CatchPanic(funcName string)

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

Deprecated: Use ReportPanic instead, the funcName parameter doesn't add useful information in addition to the trace.

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 ReportPanic added in v0.0.25

func ReportPanic()

ReportPanic should be deferred from all go-routines to ensure proper stack trace reporting.

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