This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch record-query
in repository https://gitbox.apache.org/repos/asf/skywalking-cli.git

commit bbcbc2e2c5c6b41a05aeeb5f8095a6c18a67739d
Author: mrproliu <741550...@qq.com>
AuthorDate: Wed Nov 29 13:21:11 2023 +0800

    Update record query
---
 internal/commands/metrics/aggregation/sampled-record.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/commands/metrics/aggregation/sampled-record.go 
b/internal/commands/metrics/aggregation/sampled-record.go
index 3745de7..4f26881 100644
--- a/internal/commands/metrics/aggregation/sampled-record.go
+++ b/internal/commands/metrics/aggregation/sampled-record.go
@@ -76,7 +76,7 @@ $ swctl metrics sampled-record --name 
top_n_database_statement 5
                }
 
                // since 9.3.0, use new record query API
-               if major >= 9 && minor >= 3 {
+               if (major == 9 && minor >= 3) || major > 9 {
                        condition, duration, err1 := 
buildReadRecordsCondition(ctx)
                        if err1 != nil {
                                return err1

Reply via email to