From 6fb50652729703bd06d0aba695ee95770c6b6d6c Mon Sep 17 00:00:00 2001 From: Matt Warren Date: Fri, 15 Nov 2024 12:33:41 +0000 Subject: [PATCH] Change metrics tag name from "IsLeader" -> "Operator.IsLeader" --- .../Core/Telemetry/DefaultTagsFactory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Contrast.K8s.AgentOperator/Core/Telemetry/DefaultTagsFactory.cs b/src/Contrast.K8s.AgentOperator/Core/Telemetry/DefaultTagsFactory.cs index fdc97f8..ce870d8 100644 --- a/src/Contrast.K8s.AgentOperator/Core/Telemetry/DefaultTagsFactory.cs +++ b/src/Contrast.K8s.AgentOperator/Core/Telemetry/DefaultTagsFactory.cs @@ -40,9 +40,9 @@ public async Task> GetDefaultTags() { var defaultTags = new Dictionary(StringComparer.OrdinalIgnoreCase) { - { "IsLeader", _leaderElectionState.IsLeader().ToString() }, { "Operator.IsPublicBuild", _isPublicTelemetryBuildGetter.IsPublicBuild().ToString() }, - { "Operator.Version", _telemetryState.OperatorVersion } + { "Operator.Version", _telemetryState.OperatorVersion }, + { "Operator.IsLeader", _leaderElectionState.IsLeader().ToString() } }; if (!string.IsNullOrWhiteSpace(_telemetryOptions.InstallSource))