If we are enabling async_insert, query log missing all insert queries.

We are using log for monitoring, too (inserts time, inserts frequency etc), and with  async_insert query_log is empty. Maybe log can be written anyway?
span.attribute_names.push_back("db.statement");
        span.attribute_values.push_back(elem.query);
        span.attribute_names.push_back("clickhouse.query_id");
        span.attribute_values.push_back(elem.client_info.current_query_id);
        span.attribute_names.push_back("clickhouse.exception");
        span.attribute_values.push_back(elem.exception);
        span.attribute_names.push_back("clickhouse.exception_code");
        span.attribute_values.push_back(elem.exception_code);
        if (!context->query_trace_context.tracestate.empty())
        {
            span.attribute_names.push_back("clickhouse.tracestate");
            span.attribute_values.push_back(
                context->query_trace_context.tracestate);
        }
        opentelemetry_span_log->add(span);
    }
    ProfileEvents::increment(ProfileEvents::FailedQuery);
    if (ast)
    {
        if (ast->as<ASTSelectQuery>() || ast->as<ASTSelectWithUnionQuery>())
        {
            ProfileEvents::increment(ProfileEvents::FailedSelectQuery);
        }
        else if (ast->as<ASTInsertQuery>())
        {
            ProfileEvents::increment(ProfileEvents::FailedInsertQuery);
        }
    }
}
static void setQuerySpecificSettings(ASTPtr & ast, ContextMutablePtr context)