Documentation
¶
Overview ¶
Package erroringest decodes Sentry SDK payloads into grouped error events.
Index ¶
Constants ¶
View Source
const MaxEventsPerEnvelope = 20
MaxEventsPerEnvelope bounds the events taken from one request.
View Source
const MaxRawBytes = 64 << 10
MaxRawBytes bounds the stored JSON of one event.
Variables ¶
View Source
var ErrMalformed = errors.New("sentry: malformed envelope or event")
ErrMalformed is returned when a body is neither an envelope nor an event.
Functions ¶
func NormalizeMessage ¶
NormalizeMessage collapses ids and numbers so messages that differ only by a request id, port or count land in one issue.
func ParseEnvelope ¶
func ParseEnvelope(body []byte) ([]telemetry.ErrorEvent, error)
ParseEnvelope returns the error events of a Sentry envelope. Items of any other type (sessions, transactions, attachments, ...) are skipped.
func ParseStore ¶
func ParseStore(body []byte) (telemetry.ErrorEvent, error)
ParseStore decodes the body of the legacy /store/ endpoint: a JSON event, or the base64 + zlib form old SDKs sent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.