From bceb1af3864d48658788f3b2586f015dde0326a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Novotn=C3=BD?= Date: Fri, 7 Feb 2025 13:03:09 +0100 Subject: [PATCH] fix: Labels made observability metrics unusable In traffic recording updates the labels were added to JFR events and this way they also got into the observability metrics. This made metrics with very high cardinality and overloads the server. We need to reconsider the approach to labels that get incorporated into the metrics. Refs: #800 --- .../java/io/evitadb/core/metric/event/query/FinishedEvent.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evita_engine/src/main/java/io/evitadb/core/metric/event/query/FinishedEvent.java b/evita_engine/src/main/java/io/evitadb/core/metric/event/query/FinishedEvent.java index 30d8fded8..0b64d0177 100644 --- a/evita_engine/src/main/java/io/evitadb/core/metric/event/query/FinishedEvent.java +++ b/evita_engine/src/main/java/io/evitadb/core/metric/event/query/FinishedEvent.java @@ -6,7 +6,7 @@ * | __/\ V /| | || (_| | |_| | |_) | * \___| \_/ |_|\__\__,_|____/|____/ * - * Copyright (c) 2024 + * Copyright (c) 2024-2025 * * Licensed under the Business Source License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. @@ -59,7 +59,6 @@ public class FinishedEvent extends AbstractQueryEvent { @Label("Labels") @Description("Zero or more client labels associated with the query. Labels are delimited by comma, label consists of name and value separated by equals sign.") - @ExportMetricLabel private final String labels; @Label("Query planning duration in milliseconds")