def METHOD_NAME(raw_trace_logs: str) -> List[dict[str, Any]]:
    # CLICKHOUSE TRACING LOG STRUCTURE: '[ NODE ] [ THREAD_ID ] {QUERY_ID} <LOG_TYPE> LOG_LINE'
    formatted_logs = []
    for line in raw_trace_logs.splitlines():
        context = re.findall(r"\[.*?\]", line)
        log_type = ""
        log_type_regex = re.search(r"<.*?>", line)
        if log_type_regex is not None:
            log_type = log_type_regex.group()
        try:
            formatted_log = {
                "node_name": context[0][2:-2],
                "thread_id": context[1][2:-2],
                "log_type": log_type,
                "log_content": re.split(r"<.*?>", line)[1].strip(),
            }
        except Exception:
            # Error parsing log line, continue.
            pass
        formatted_logs.append(formatted_log)
    return formatted_logs