runtime

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCrash

func HandleCrash()

HandleCrash recovers from panic and logs it.

func HandleCrashWithContext

func HandleCrashWithContext(ctx context.Context, additionalHandlers ...func(context.Context, interface{}))

HandleCrashWithContext recovers from panic and logs it with the context logger.

func HandleCrashWithLogger

func HandleCrashWithLogger(logger klog.Logger)

HandleCrashWithLogger recovers from panic and logs it using the provided logger.

func HandleError

func HandleError(err error)

HandleError logs an asynchronous error.

func HandleErrorWithContext

func HandleErrorWithContext(ctx context.Context, err error, msg string, keysAndValues ...interface{})

HandleErrorWithContext logs an asynchronous error with contextual logging when available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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