From a29ffae1c37f3d700c8273e8d42f82c23c906b81 Mon Sep 17 00:00:00 2001 From: Almog Gavra Date: Fri, 15 Dec 2023 14:06:07 -0800 Subject: [PATCH] strongly type our metrics export keys (#205) --- .../src/main/proto/responsive/metrics/v1/metrics.proto | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/controller-api/src/main/proto/responsive/metrics/v1/metrics.proto b/controller-api/src/main/proto/responsive/metrics/v1/metrics.proto index 1ba7cfe41..fb32d3709 100644 --- a/controller-api/src/main/proto/responsive/metrics/v1/metrics.proto +++ b/controller-api/src/main/proto/responsive/metrics/v1/metrics.proto @@ -17,8 +17,11 @@ message TenantResource { string tenant = 1; // the resource (the entity in the system that reported the - // metrics that are collected) - opentelemetry.proto.resource.v1.Resource resource = 2; + // metrics that are collected) - we use oneof in order to + // allow for different types of resources in the future + oneof resource { + string applicationId = 2; + } } // a metric that is reported from Responsive, for now this is