report

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 7 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSentryReport

func BuildSentryReport(
	err error,
) (errMsg string, packetDetails []raven.Interface, extraDetails map[string]interface{})

BuildSentryReport builds the components of a sentry report. This can be used instead of ReportError() below to use additional custom conditions in the reporting or add additional reporting tags.

func PrintStackTrace

func PrintStackTrace(s *StackTrace) string

PrintStackTrace produces a human-readable partial representation of the stack trace.

func ReportError

func ReportError(err error) (eventID string, retErr error)

ReportError reports the given error to Sentry. The caller is responsible for checking whether telemetry is enabled.

Types

type ReportableObject

type ReportableObject = raven.Interface

ReportableObject is an interface suitable for the extra detail objects provided to SendReport().

func NewReportMessage

func NewReportMessage(msg string) ReportableObject

NewReportMessage constructs string objects that can be added to calls to SendReport().

type StackTrace

type StackTrace = raven.Stacktrace

StackTrace is an object suitable for inclusion in errors that can ultimately be reported with ReportInternalError() or similar.

Jump to

Keyboard shortcuts

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