Documentation
¶
Overview ¶
Package report is the seam between the places errors surface (panic recovery, typed handlers, the frontend) and whatever collects them (the analytics pack). Without a reporter, Capture does nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// Source is "server" or "client".
Source string `json:"source"`
Message string `json:"message"`
Stack string `json:"stack,omitempty"`
Route string `json:"route,omitempty"`
Method string `json:"method,omitempty"`
URL string `json:"url,omitempty"`
RequestID string `json:"requestId,omitempty"`
UserID string `json:"userId,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Extra map[string]any `json:"extra,omitempty"`
At time.Time `json:"at"`
}
Error is one captured failure.
Click to show internal directories.
Click to hide internal directories.