Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1464)

Unified Diff: appengine/gaemiddleware/version.go

Issue 2870293002: Introduce luci-go components version metric. (Closed)
Patch Set: luci-go/appengine is actually not imported by anything >_< Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/tsmon/standardmetrics.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/gaemiddleware/version.go
diff --git a/appengine/gaemiddleware/version.go b/appengine/gaemiddleware/version.go
new file mode 100644
index 0000000000000000000000000000000000000000..60cb611c983bdfb5900f30afadae30cbfc75a2f7
--- /dev/null
+++ b/appengine/gaemiddleware/version.go
@@ -0,0 +1,23 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package gaemiddleware
+
+import (
+ "github.com/luci/luci-go/common/tsmon/versions"
+)
+
+// Version is a semantic version of base luci-go GAE library.
+//
+// It is bumped whenever we add new features or fix important bugs. It is
+// reported to monitoring as 'luci/components/version' string metric with
+// 'component' field set to 'github.com/luci/luci-go/appengine/gaemiddleware'.
+//
+// It allows to track what GAE apps use what version of the library, so it's
+// easier to detect stale code running in production.
+const Version = "1.0.0"
+
+func init() {
+ versions.Register("github.com/luci/luci-go/appengine/gaemiddleware", Version)
+}
« no previous file with comments | « no previous file | appengine/tsmon/standardmetrics.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698