sentry

package
v0.0.0-...-c802062 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package sentry implements sending errors and messages to Sentry with proper aggregation. Sentry is crash reporting and aggregation platform, https://sentry.io

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureAndWait

func CaptureAndWait(packet *raven.Packet, tags map[string]string) string

func CaptureErrorAndWait

func CaptureErrorAndWait(message string, tags map[string]string, calldepth int, level raven.Severity) string

CaptureErrorAndWait() sends message to Sentry and returns eventID Aggregating is done by stacktrace

func CaptureMessageAndWait

func CaptureMessageAndWait(message string, tags map[string]string, calldepth int, iObject *raven.Message) string

CaptureMessageAndWait() sends message to Sentry and returns eventID Aggregating is done by iObject.Message attribute Additional info is filename and line number

func Interface2Packet

func Interface2Packet(message string, iObject raven.Interface, level raven.Severity) *raven.Packet

func MustSetDSN

func MustSetDSN(dsn string)

= raven.SetDSN(dsn) with checks

func SetSEH

func SetSEH(seh SentryErrorHandlerType)

Install handler to hook events when sending to Sentry failed

Types

type SentryErrorHandlerType

type SentryErrorHandlerType func(err error)

Handler type to hook events when sending to Sentry failed

var SentryErrorHandler SentryErrorHandlerType = nil

Jump to

Keyboard shortcuts

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