Files
tailscale/feature/buildfeatures/feature_runtimemetrics_enabled.go
T
Jordan WhitedandJordan Whited e5a8cf3b18 control/controlknobs,feature/*,ipn/ipnlocal,tailcfg: add runtimemetrics
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>
2026-05-26 16:02:01 -07:00

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 = true