From 9c2ad91230d72fe6d661450cc78300ea223ae2bc Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 19 Oct 2020 11:05:36 +0530 Subject: make it better --- .../github.com/heroku/x/hmetrics/onload/README.md | 7 ++++++ vendor/github.com/heroku/x/hmetrics/onload/init.go | 25 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 vendor/github.com/heroku/x/hmetrics/onload/README.md create mode 100644 vendor/github.com/heroku/x/hmetrics/onload/init.go (limited to 'vendor/github.com/heroku/x/hmetrics/onload') diff --git a/vendor/github.com/heroku/x/hmetrics/onload/README.md b/vendor/github.com/heroku/x/hmetrics/onload/README.md new file mode 100644 index 0000000..037068e --- /dev/null +++ b/vendor/github.com/heroku/x/hmetrics/onload/README.md @@ -0,0 +1,7 @@ +runtime-metrics +=============== + +This will only be useful if you are inside the runtime metrics private beta. + +This package, once loaded, will implicitly dump a subset of runtime performace +metrics to the URL denoted by `HEROKU_METRICS_URL` diff --git a/vendor/github.com/heroku/x/hmetrics/onload/init.go b/vendor/github.com/heroku/x/hmetrics/onload/init.go new file mode 100644 index 0000000..d6fb49d --- /dev/null +++ b/vendor/github.com/heroku/x/hmetrics/onload/init.go @@ -0,0 +1,25 @@ +/* +package onload automatically starts up the hmetrics reporting. + +Use this package when you don't care about shutting down them metrics reporting or being notified of any reporting +errors. + +usage: + +import ( + _ "github.com/heroku/x/hmetrics/onload" +) + +*/ + +package onloads + +import ( + "context" + + "github.com/heroku/x/hmetrics" +) + +func init() { + hmetrics.Report(context.Background(), nil) +} -- cgit v1.2.3