crashmonitor

package
v0.10.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start starts the monitor process, which performs automated reporting of unexpected crashes via Go telemetry. Call this function once immediately after counter.Open() within the main function of your application, before argument parsing.

This function re-executes the current executable as a child process, in a special mode. In that mode, the call to Start will never return.

The application should avoid doing expensive work in init functions as they will be executed twice. Run with GODEBUG=inittrace=1 to display the running time of each package initializer.

Start uses the debug.SetCrashOutput mechanism, which is a process-wide resource. Do not make other calls to that function within your application. Start is a no-op unless the program is built with go1.23+.

func Supported

func Supported() bool

Supported reports whether the runtime supports runtime.SetCrashOutput.

TODO(adonovan): eliminate once go1.23+ is assured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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