You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2026/10/19 00:01:46 UTC
(skywalking-query-protocol) 01/01: Name the store holding the span a GenAI evaluation was produced from
This is an automated email from the ASF dual-hosted git repository.
wu-sheng pushed a commit to branch genai-evaluation-trace-storage
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
commit 62f655d8a04785fa87e6878b89e3464d4396d967
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Mon Oct 19 08:01:37 2026 +0800
Name the store holding the span a GenAI evaluation was produced from
---
gen-ai-evaluation-record.graphqls | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gen-ai-evaluation-record.graphqls b/gen-ai-evaluation-record.graphqls
index 2af0a80..bc71560 100644
--- a/gen-ai-evaluation-record.graphqls
+++ b/gen-ai-evaluation-record.graphqls
@@ -29,11 +29,27 @@ enum GenAITraceRefType {
OTLP
}
+# The store holding the span an evaluation was produced from. OTLP and Zipkin spans are
+# addressed the same way, so GenAITraceRefType alone cannot say where to read the trace.
+enum GenAITraceStorage {
+ # SkyWalking native segments.
+ SKYWALKING_NATIVE
+ # OTLP spans stored as received, with receiver-otel `otlpTraceStorage: otlp`.
+ # Served by the TraceQL OTLP datasource.
+ OTLP
+ # Zipkin spans: received by receiver-zipkin, or OTLP spans converted with
+ # receiver-otel `otlpTraceStorage: zipkin`. Served by the Zipkin query API.
+ ZIPKIN
+}
+
# Points at the span an evaluation was produced from, in whichever addressing scheme
# its source used. GenAI evaluation accepts SkyWalking native, OTLP and Zipkin traces,
# and a single span-id type cannot describe all of them.
type GenAITraceRef {
type: GenAITraceRefType!
+ # Decided per span when it is received, so records of one OAP can name different stores.
+ # Null only for an OTLP-addressed record written before the store was recorded.
+ storage: GenAITraceStorage
traceId: String!
# SKYWALKING_NATIVE only. The segment carrying the span.
segmentId: String