onload

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 173

Documentation

Overview

Package onload automatically starts hmetrics reporting, ignoring errors and retrying reporting, backing off in 10 second increments.

Use this package when you don't care about stopping reporting, specifying the endpoint, or being notified of any reporting errors.

This package will log all reporting errors via the stdlib log package if the environment variable HMETRICS_VERBOSE is set to "1", or any other true-like value as defined by strconv#ParseBool (see $ godoc strconv for more information).

usage:

  import (
	_ "github.com/heroku/x/hmetrics/onload"
  )

See the package documentation at https://godoc.org/github.com/heroku/x/hmetrics for more info about Heroku Go metrics and advanced usage.

Jump to

Keyboard shortcuts

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