From 6ec0c1d319051b3ece284445da7e698915420597 Mon Sep 17 00:00:00 2001 From: Shashank Patidar Date: Thu, 28 Nov 2024 20:42:49 +0530 Subject: [PATCH] exclude metric attributes to solve max cardinality warn logs --- .../agent/otel/extensions/MetricViewConfiguration.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/MetricViewConfiguration.java b/otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/MetricViewConfiguration.java index 079563fa..32774ead 100644 --- a/otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/MetricViewConfiguration.java +++ b/otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/MetricViewConfiguration.java @@ -29,10 +29,18 @@ public static View createView() { new HashSet<>( Arrays.asList( "net.sock.peer.addr", + "net.sock.host.addr", "net.sock.peer.port", + "net.sock.host.port", + "net.host.name", + "net.host.port", + "net.protocol.name", + "net.protocol.version", "http.user_agent", "enduser.id", "http.client_ip", + "http.route", + "http.target", "http.request_content_length", "http.response_content_length", "user_agent.original"));