erroringest

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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

func NormalizeMessage(s string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL