From c90211927739217381f071930498978988fbb91c Mon Sep 17 00:00:00 2001 From: Aubrey Tatarowicz Date: Fri, 6 Dec 2024 12:50:40 -0600 Subject: [PATCH] add validcation check for zipkinDefaultMaxSpans --- .../main/java/com/slack/astra/server/ValidateAstraConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astra/src/main/java/com/slack/astra/server/ValidateAstraConfig.java b/astra/src/main/java/com/slack/astra/server/ValidateAstraConfig.java index 94cf1be2fc..01d12e5065 100644 --- a/astra/src/main/java/com/slack/astra/server/ValidateAstraConfig.java +++ b/astra/src/main/java/com/slack/astra/server/ValidateAstraConfig.java @@ -50,6 +50,9 @@ private static void validateQueryConfig(AstraConfigs.QueryServiceConfig queryCon queryConfig.getServerConfig().getRequestTimeoutMs() > queryConfig.getDefaultQueryTimeoutMs(), "QueryConfig requestTimeoutMs must be higher than defaultQueryTimeoutMs"); + checkArgument( + queryConfig.getZipkinDefaultMaxSpans() >= 1000, + "QueryConfig zipkinDefaultMaxSpans cannot less than 1000"); } private static void validateCacheConfig(AstraConfigs.CacheConfig cacheConfig) {