mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-04 20:12:16 +02:00
Saves 57 KB Updates #12614 Change-Id: If7eebec12b3cb30ae6264171d36a258c04b05a70 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
25 lines
766 B
Go
25 lines
766 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_clientmetrics
|
|
|
|
package clientmetric
|
|
|
|
type Metric struct{}
|
|
|
|
func (*Metric) Add(int64) {}
|
|
func (*Metric) Set(int64) {}
|
|
func (*Metric) Value() int64 { return 0 }
|
|
func (*Metric) Register(expvarInt any) {}
|
|
func (*Metric) UnregisterAll() {}
|
|
|
|
func HasPublished(string) bool { panic("unreachable") }
|
|
func EncodeLogTailMetricsDelta() string { return "" }
|
|
func WritePrometheusExpositionFormat(any) {}
|
|
|
|
var zeroMetric Metric
|
|
|
|
func NewCounter(string) *Metric { return &zeroMetric }
|
|
func NewGauge(string) *Metric { return &zeroMetric }
|
|
func NewAggregateCounter(string) *Metric { return &zeroMetric }
|