x: github.com/heroku/x/hmetrics/onload Index | Files

package onload

import "github.com/heroku/x/hmetrics/onload"

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.

Index

Package Files

init.go

Package onload imports 6 packages (graph) and is imported by 13 packages. Updated 2019-09-07. Refresh now. Tools for package owners.