Skip to content

Commit

Permalink
add validcation check for zipkinDefaultMaxSpans
Browse files Browse the repository at this point in the history
  • Loading branch information
autata committed Dec 6, 2024
1 parent a14240d commit c902119
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c902119

Please sign in to comment.