This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git
The following commit(s) were added to refs/heads/main by this push:
new 7c38bab Make TraceQueryResponse internal trace return object. (#100)
7c38bab is described below
commit 7c38bab767961177cf843d3107407343e7e49cdb
Author: Wan Kai <[email protected]>
AuthorDate: Mon Sep 29 10:17:34 2025 +0800
Make TraceQueryResponse internal trace return object. (#100)
---
.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;
}
/**