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 2020/12/03 00:19:13 UTC

[skywalking-query-protocol] 01/01: I polished a little about the log query.

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

wusheng pushed a commit to branch log-query-polish
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

commit 5f776039a02386ecd7966758c9b5cfaa718ec02e
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Dec 3 08:19:00 2020 +0800

    I polished a little about the log query.
---
 log.graphqls | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/log.graphqls b/log.graphqls
index 31836fc..7d54bab 100644
--- a/log.graphqls
+++ b/log.graphqls
@@ -44,7 +44,7 @@ input LogQueryCondition {
     serviceId: ID
     serviceInstanceId: ID
     endpointId: ID
-    traceId: String
+    relatedTrace: TraceScopeCondition
     # The time range of log happened
     queryDuration: Duration
     state: LogState!
@@ -52,6 +52,13 @@ input LogQueryCondition {
     paging: Pagination!
 }
 
+# Trace related condition
+input TraceScopeCondition {
+    traceId: String
+    segmentId: String
+    spanId: Int
+}
+
 enum LogState {
     ALL
     SUCCESS
@@ -61,7 +68,7 @@ enum LogState {
 enum ContentType {
     TEXT
     JSON
-    NONE
+    YAML
 }
 
 extend type Query {