Files
tailscale/util/clientmetric/type.go
T
Fredrik Fornwall 3c19e6d2a7 util/clientmetric: define Type unconditionally
Move Type and its constants to an unconditional file so syspolicy, and
its dependents such as tsnet, compile with ts_omit_clientmetrics.

Fixes #22252

Change-Id: Ib9ca1c192e3e1c570aa32d41650d72fbff1aff0c
Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
2026-11-09 07:51:50 -08:00

13 lines
217 B
Go

// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause
package clientmetric
// Type is a metric type: counter or gauge.
type Type uint8
const (
TypeGauge Type = iota
TypeCounter
)