package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev
# Functions
Bucket10 buckets a number by order of magnitude base 10, eg 637 -> 100.
Count retrieves and increments the usage counter for the passed feature.
CountBucketed counts the feature identified by prefix and the value, using the bucketed value to pick a feature bucket to increment, e.g.
GetAndResetFeatureCounts returns the current feature usage counts and resets the counts for all features back to 0.
GetCounter returns a counter from the global registry.
GetFeatureCounts returns the current feature usage counts.
Inc increments the counter.
RecordError takes an error and increments the corresponding count for its error code, and, if it is an unimplemented or internal error, the count for that feature or the internal error's shortened stack trace.