Emit runtime metrics as clientmetrics when the NodeAttrEmitRuntimeMetrics NodeCapability is present. We start small with just 2 metrics: heap bytes and total process memory. Updates tailscale/corp#39434 Signed-off-by: Jordan Whited <jordan@tailscale.com>
14 lines
524 B
Go
14 lines
524 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by gen.go; DO NOT EDIT.
|
|
|
|
//go:build ts_omit_runtimemetrics
|
|
|
|
package buildfeatures
|
|
|
|
// HasRuntimeMetrics is whether the binary was built with support for modular feature "Support emission of runtime/metrics as clientmetrics".
|
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_runtimemetrics" build tag.
|
|
// It's a const so it can be used for dead code elimination.
|
|
const HasRuntimeMetrics = false
|