From 7fb22efdf9bc8fe9f8db20802cf0a1a1e78d7519 Mon Sep 17 00:00:00 2001 From: Paramadon Date: Thu, 5 Dec 2024 16:30:43 -0500 Subject: [PATCH] fixing op filter --- extension/agenthealth/handler/stats/agent/agent.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extension/agenthealth/handler/stats/agent/agent.go b/extension/agenthealth/handler/stats/agent/agent.go index 1567b81512..10b82c8fd5 100644 --- a/extension/agenthealth/handler/stats/agent/agent.go +++ b/extension/agenthealth/handler/stats/agent/agent.go @@ -157,12 +157,7 @@ func NewOperationsFilter(operations ...string) OperationsFilter { // NewStatusCodeOperationsFilter creates a new filter for allowed operations and status codes. func NewStatusCodeOperationsFilter() OperationsFilter { - allowed := collections.NewSet[string](StatusCodeOperations...) - - return OperationsFilter{ - operations: allowed, - allowAll: allowed.Contains(AllowAllOperations), - } + return NewOperationsFilter(StatusCodeOperations...) } // GetShortOperationName maps long operation names to short ones.