erroringest

package
v1.5.10 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type CheckIn

type CheckIn struct {
	Slug   string
	Status string
}

CheckIn is a Sentry cron check-in item. Status is one of in_progress, ok, error.

func ParseEnvelopeItems

func ParseEnvelopeItems(body []byte) ([]telemetry.ErrorEvent, []CheckIn, error)

ParseEnvelopeItems returns the error events and cron check-ins of an envelope.

Jump to

Keyboard shortcuts

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