From 2f13b72e2e6911da43feebd28160a41bd6feb507 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:01:12 +0000 Subject: [chore] add nometrics build tagging to metrics API endpoint (#3331) * add nometrics API endpoint code, to ensure prometheus NEVER compiled in unless wanted * whoops, fix build tagging --- internal/api/metrics/metrics.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api/metrics/metrics.go') diff --git a/internal/api/metrics/metrics.go b/internal/api/metrics/metrics.go index af774d5e8..bbca861ef 100644 --- a/internal/api/metrics/metrics.go +++ b/internal/api/metrics/metrics.go @@ -15,6 +15,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +//go:build !nometrics + package metrics import ( -- cgit v1.2.3