[feature](tracing) Support query tracing to improve doris observability by introducing OpenTelemetry. (#10533)

The collection of query traces is implemented in fe and be, and the spans are exported to zipkin.
DSIP: https://cwiki.apache.org/confluence/display/DORIS/DSIP-012%3A+Introduce+opentelemetry
This commit is contained in:
luozenglin
2022-07-09 15:50:40 +08:00
committed by GitHub
parent 1112dba525
commit d5ea677282
61 changed files with 1119 additions and 110 deletions

View File

@ -102,6 +102,7 @@ Status TableFunctionNode::prepare(RuntimeState* state) {
}
Status TableFunctionNode::open(RuntimeState* state) {
START_AND_SCOPE_SPAN(state->get_tracer(), span, "TableFunctionNode::open");
SCOPED_TIMER(_runtime_profile->total_time_counter());
SCOPED_SWITCH_TASK_THREAD_LOCAL_MEM_TRACKER(mem_tracker());
RETURN_IF_CANCELLED(state);
@ -374,6 +375,7 @@ Status TableFunctionNode::close(RuntimeState* state) {
if (is_closed()) {
return Status::OK();
}
START_AND_SCOPE_SPAN(state->get_tracer(), span, "TableFunctionNode::close");
Expr::close(_fn_ctxs, state);
vectorized::VExpr::close(_vfn_ctxs, state);