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.