From 9f4f30518be578dbedce83b8bfffb6c15d42992f Mon Sep 17 00:00:00 2001 From: Jason Collins Date: Fri, 8 Nov 2024 16:02:34 -0700 Subject: [PATCH] set the id with remote prefix in custom metric --- pkg/customunit/manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/customunit/manager.go b/pkg/customunit/manager.go index 39c526f17..64e68b1df 100644 --- a/pkg/customunit/manager.go +++ b/pkg/customunit/manager.go @@ -14,6 +14,7 @@ import ( "github.com/Axway/agent-sdk/pkg/apic/definitions" "github.com/Axway/agent-sdk/pkg/config" "github.com/Axway/agent-sdk/pkg/transaction/models" + transUtil "github.com/Axway/agent-sdk/pkg/transaction/util" "github.com/Axway/agent-sdk/pkg/util" "github.com/Axway/agent-sdk/pkg/util/log" ) @@ -261,7 +262,7 @@ func (c *CustomUnitMetricServerManager) APIServiceLookup(apiServiceLookup *custo } return &models.APIDetails{ - ID: id, + ID: transUtil.FormatProxyID(id), Name: apiSvc.Name, }, nil }