tracing log with passed id #14893
Unanswered
twokindswater
asked this question in
Q&A
Replies: 1 comment
-
trino does not print any tracing log. so i suggest to add trace token in /trino/core/trino-main/src/main/java/io/trino/event/QueryMonitor.java private static void logQueryTimeline(
QueryId queryId,
QueryState queryState,
Optional<ErrorCode> errorCode,
long elapsedMillis,
long planningMillis,
long waitingMillis,
long schedulingMillis,
long runningMillis,
long finishingMillis,
DateTime queryStartTime,
DateTime queryEndTime)
{
log.info("TIMELINE: Query %s :: %s%s :: elapsed %sms :: planning %sms :: waiting %sms :: scheduling %sms :: running %sms :: finishing %sms :: begin %s :: end %s",
queryId,
queryState,
errorCode.map(code -> " (%s)".formatted(code.getName())).orElse(""),
elapsedMillis,
planningMillis,
waitingMillis,
schedulingMillis,
runningMillis,
finishingMillis,
queryStartTime,
queryEndTime);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
could you help to trace trino log with passed id?
i tried to send with
X-Trino-Trace-Token
. but trino does not print traceToken in log files.or can i pass query id?
Beta Was this translation helpful? Give feedback.
All reactions