aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/heroku/x/hmetrics/onload/init.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-19 11:05:36 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-19 11:05:36 +0530
commit9c2ad91230d72fe6d661450cc78300ea223ae2bc (patch)
tree17bd774b3f972359dfbb46248f085bbf1c6dae98 /vendor/github.com/heroku/x/hmetrics/onload/init.go
make it better
Diffstat (limited to 'vendor/github.com/heroku/x/hmetrics/onload/init.go')
-rw-r--r--vendor/github.com/heroku/x/hmetrics/onload/init.go25
1 files changed, 25 insertions, 0 deletions
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)
+}