package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

PanicAsError turns r into an error if it is not one already.
RecoverAndReportNonfatalPanic is an alternative RecoverAndReportPanic that does not re-panic in Release builds.
RecoverAndReportPanic can be invoked on goroutines that run with stderr redirected to logs to ensure the user gets informed on the real stderr a panic has occurred.
RegisterTagFn adds a function for tagging crash reports based on the context.
ReportOrPanic either reports an error to sentry, if run from a release binary, or panics, if triggered in tests.
ReportPanic reports a panic has occurred on the real stderr.
ReportPanicWithGlobalSettings is a variant of ReportPanic that uses the *settings.Values that was set using SetGlobalSettings().
SendReport uploads a detailed error report to sentry.
SetGlobalSettings sets the *settings.Values container that will be refreshed at runtime -- ideally we should have no other *Values containers floating around, as they will be stale / lies.
SetupCrashReporter sets the crash reporter info.
ShouldSendReport returns true iff SendReport() should be called.

# Constants

ReportTypeError signifies that this is just a report of an error but it still may include an exception and stack trace.
ReportTypeLogFatal signifies that this is an error report that was generated via a log.Fatal call.
ReportTypePanic signifies that this is an actual panic.

# Variables

CrashReports wraps "diagnostics.reporting.send_crash_reports.enabled".
DiagnosticsReportingEnabled wraps "diagnostics.reporting.enabled".
PanicOnAssertions wraps "debug.panic_on_failed_assertions.enabled".
ReportSensitiveDetails enables reporting of unanonymized data.

# Type aliases

ReportType is used to differentiate between an actual crash/panic and just reporting an error.