Skip to content

Commit 8529b3f

Browse files
authored
exclude metric attributes to solve max cardinality warn logs (#408)
1 parent 19a634e commit 8529b3f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

otel-extensions/src/main/java/org/hypertrace/agent/otel/extensions/MetricViewConfiguration.java

+8
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ public static View createView() {
2929
new HashSet<>(
3030
Arrays.asList(
3131
"net.sock.peer.addr",
32+
"net.sock.host.addr",
3233
"net.sock.peer.port",
34+
"net.sock.host.port",
35+
"net.host.name",
36+
"net.host.port",
37+
"net.protocol.name",
38+
"net.protocol.version",
3339
"http.user_agent",
3440
"enduser.id",
3541
"http.client_ip",
42+
"http.route",
43+
"http.target",
3644
"http.request_content_length",
3745
"http.response_content_length",
3846
"user_agent.original"));

0 commit comments

Comments
 (0)