Registry / utility / bugsnag-panicwrap

bugsnag-panicwrap

JSON →
library1.3.4gogounverified

Package panicwrap provides functions for capturing and handling panics by re-executing the application and monitoring stderr.

go get github.com/bugsnag/panicwrap
INSTALL
IMPORT
SIG · BUGSNAG-PANICWRAP
B
bugsnag-panicwrap
utilitygov1.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

panicwrap
✓ github.com/bugsnag/panicwrap

Wraps the program to capture panics.

package main import ( "fmt" "github.com/bugsnag/panicwrap" ) func main() { exitStatus, err := panicwrap.BasicWrap(func(output string) { fmt.Println("Panic output:", output) }) if err != nil { panic(err) } if exitStatus >= 0 { return } // Normal program execution fmt.Println("Running...") }
Debug
Known issues
gotchaPanicwrap re-executes the binary, which may cause issues with certain environments or flags.
fix
Ensure the binary is accessible and no side effects from re-execution.
affects: all
Upgrade
Version history
1.3.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
bugsnag-panicwrap — go get bugsnag-panicwrap · libregistry