You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wa...@apache.org on 2025/09/29 02:06:06 UTC

(skywalking-banyandb-java-client) branch internal-trace created (now fe0c287)

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

wankai pushed a change to branch internal-trace
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git


      at fe0c287  Make TraceQueryResponse internal trace return object. Update license.

This branch includes the following new commits:

     new fe0c287  Make TraceQueryResponse internal trace return object. Update license.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(skywalking-banyandb-java-client) 01/01: Make TraceQueryResponse internal trace return object. Update license.

Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wankai pushed a commit to branch internal-trace
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git

commit fe0c287e7ea741cbde320955e89478e0d88cb680
Author: wankai123 <wa...@foxmail.com>
AuthorDate: Mon Sep 29 10:05:51 2025 +0800

    Make TraceQueryResponse internal trace return object.
    Update license.
---
 .licenserc.yaml                                               |  4 ++--
 dist-material/LICENSE                                         |  8 ++++----
 .../skywalking/banyandb/v1/client/TraceQueryResponse.java     | 11 ++++-------
 3 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/.licenserc.yaml b/.licenserc.yaml
index 6397c1c..e0ee3e9 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -56,8 +56,8 @@ dependency:
       version: 9999.0-empty-to-avoid-conflict-with-guava
       license: Apache-2.0
     - name: build.buf.protoc-gen-validate:pgv-java-stub
-      version: 0.6.13
+      version: 1.2.1
       license: Apache-2.0
     - name: build.buf.protoc-gen-validate:protoc-gen-validate
-      version: 0.6.13
+      version: 1.2.1
       license: Apache-2.0
diff --git a/dist-material/LICENSE b/dist-material/LICENSE
index af6895b..82a45cd 100644
--- a/dist-material/LICENSE
+++ b/dist-material/LICENSE
@@ -178,8 +178,8 @@
 Apache-2.0 licenses
 ========================================================================
 
-    build.buf.protoc-gen-validate:pgv-java-stub 0.6.13 Apache-2.0
-    build.buf.protoc-gen-validate:protoc-gen-validate 0.6.13 Apache-2.0
+    build.buf.protoc-gen-validate:pgv-java-stub 1.2.1 Apache-2.0
+    build.buf.protoc-gen-validate:protoc-gen-validate 1.2.1 Apache-2.0
     com.google.android:annotations 4.1.1.4 Apache-2.0
     com.google.api.grpc:proto-google-common-protos 2.0.1 Apache-2.0
     com.google.code.findbugs:jsr305 3.0.2 Apache-2.0
@@ -189,7 +189,7 @@ Apache-2.0 licenses
     com.google.guava:guava 31.0.1-android Apache-2.0
     com.google.guava:listenablefuture 9999.0-empty-to-avoid-conflict-with-guava Apache-2.0
     com.google.j2objc:j2objc-annotations 1.3 Apache-2.0
-    commons-validator:commons-validator 1.7 Apache-2.0
+    commons-validator:commons-validator 1.9 Apache-2.0
     io.grpc:grpc-api 1.46.0 Apache-2.0
     io.grpc:grpc-context 1.46.0 Apache-2.0
     io.grpc:grpc-core 1.46.0 Apache-2.0
@@ -236,4 +236,4 @@ MIT licenses
 https://golang.org/LICENSE licenses
 ========================================================================
 
-    com.google.re2j:re2j 1.5 https://golang.org/LICENSE
+    com.google.re2j:re2j 1.7 https://golang.org/LICENSE
diff --git a/src/main/java/org/apache/skywalking/banyandb/v1/client/TraceQueryResponse.java b/src/main/java/org/apache/skywalking/banyandb/v1/client/TraceQueryResponse.java
index 4fdd714..fff4a3c 100644
--- a/src/main/java/org/apache/skywalking/banyandb/v1/client/TraceQueryResponse.java
+++ b/src/main/java/org/apache/skywalking/banyandb/v1/client/TraceQueryResponse.java
@@ -27,9 +27,11 @@ import java.util.List;
  */
 public class TraceQueryResponse {
     private final BanyandbTrace.QueryResponse response;
+    private final Trace trace;
 
     TraceQueryResponse(BanyandbTrace.QueryResponse response) {
         this.response = response;
+        this.trace = Trace.convertFromProto(response.getTraceQueryResult());
     }
 
     /**
@@ -43,14 +45,9 @@ public class TraceQueryResponse {
 
     /**
      * Get the trace query execution trace if enabled.
-     *
-     * @return trace query execution trace or null if not enabled
      */
-    public String getTraceResult() {
-        if (response.hasTraceQueryResult()) {
-            return response.getTraceQueryResult().toString();
-        }
-        return null;
+    public Trace getTraceResult() {
+        return this.trace;
     }
 
     /**