Help us shape the future of Go! Take the 2026 Go Developer Survey

serviceability

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BehaviorOnPanic

func BehaviorOnPanic(mode string) (fn func())

BehaviorOnPanic is a helper for setting the crash mode of OpenShift when a panic is caught. It returns a function that should be the defer handler for the caller.

Types

type SentryMonitor

type SentryMonitor struct {
	// contains filtered or unexported fields
}

SentryMonitor encapsulates a Sentry client and set of default tags

func NewSentryMonitor

func NewSentryMonitor(url string) (*SentryMonitor, error)

NewSentryMonitor creates a class that can capture panics and errors from OpenShift and Kubernetes that can roll up to a Sentry server.

func (*SentryMonitor) CaptureError

func (m *SentryMonitor) CaptureError(err error)

func (*SentryMonitor) CapturePanic

func (m *SentryMonitor) CapturePanic(capture interface{})

func (*SentryMonitor) CapturePanicAndWait

func (m *SentryMonitor) CapturePanicAndWait(capture interface{}, until time.Duration)

type Stop

type Stop interface {
	Stop()
}

func Profile

func Profile(mode string) Stop

Jump to

Keyboard shortcuts

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