Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapturePanic ¶
func CapturePanic()
CapturePanic is a helper function that recovers from a panic and reports it. Use it with defer in your main function or goroutines.
Types ¶
type ErrorEvent ¶
type ErrorEvent struct { Message string `json:"message"` StackTrace string `json:"stack_trace"` Timestamp time.Time `json:"timestamp"` Labels map[string]string `json:"labels,omitempty"` }
ErrorEvent represents a captured error with additional context.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter handles error reporting.
func NewReporter ¶
func NewReporter() *Reporter
NewReporter creates a new Reporter using the global configuration.
Click to show internal directories.
Click to hide internal directories.