package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/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.
GetCounter returns a counter from the global registry.
GetCounterOnce returns a counter from the global registry, and asserts it didn't exist previously.
GetFeatureCounts returns the current feature usage counts.
GetRawFeatureCounts returns current raw, un-quantized feature counter values.
Inc increments the counter.
NewCounterWithMetric creates a CounterWithMetric.
Read reads the current value of 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.

# Constants

Quantized returns counts quantized to order of magnitude.
Raw returns the raw, unquantized counter values.
ReadOnly leaves the counter value unchanged when reading it.
ResetCounts resets the counter to zero after fetching its value.
ValidationTelemetryKeyPrefix is the prefix of telemetry keys pertaining to descriptor validation failures.

# Structs

CounterWithMetric combines a telemetry and a metrics counter.

# Type aliases

QuantizeCounts controls if counts are quantized when fetched.
ResetCounters controls if counts are reset when fetched.