Add simple anonymous usage metrics (#1167)

This change reports total function call count to an analytics url once a day.

It's done behind the existing analytics flag.
This commit is contained in:
Soam Vasani
2019-04-30 15:48:04 -07:00
committed by GitHub
parent 9a3cc517d0
commit 23f3585245
5 changed files with 82 additions and 0 deletions
+2
View File
@@ -94,6 +94,8 @@ func Start(logger *zap.Logger, port int, executorUrl string) {
// setup a signal handler for SIGTERM
fission.SetupStackTraceHandler()
_ = MakeAnalytics("")
fmap := makeFunctionServiceMap(logger, time.Minute)
frmap := makeFunctionRecorderMap(logger, time.Minute)