package
0.0.0-20180919124532-b3c18f039607
Repository: https://github.com/sttts/library-go.git
Documentation: pkg.go.dev

# Functions

BehaviorOnPanic is a helper for setting the crash mode of OpenShift when a panic is caught.
InitLogrus initializes logrus by setting a loglevel for it.
NewSentryMonitor creates a class that can capture panics and errors from OpenShift and Kubernetes that can roll up to a Sentry server.
Profile returns an interface to defer for a profile: `defer serviceability.Profile(os.Getenv("OPENSHIFT_PROFILE")).Stop()` is common.
StartProfiler starts the golang profiler on a port if `web` is specified.

# Structs

SentryMonitor encapsulates a Sentry client and set of default tags.

# Interfaces

Stop is a function to defer in your main call to provide profile info.