We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba6fe8 commit 22407fcCopy full SHA for 22407fc
pkg/metrics/counter.go
@@ -29,9 +29,8 @@ func RegCounter(name string, tagStrings ...string) Counter {
29
// StandardCounter is the standard implementation of a Counter and uses the
30
// sync/atomic package to manage a single int64 value.
31
type StandardCounter struct {
32
+ count int64 //Due to a bug in golang the 64bit variable need to come first to be 64bit aligned. https://golang.org/pkg/sync/atomic/#pkg-note-BUG
33
*MetricMeta
-
34
- count int64
35
}
36
37
// Clear sets the counter to zero.
0 commit comments