fix(server): 修复 Agent 上报访问日志的 bytes_sent 在 Server 入库链路丢失,导致 Zone 概览“已提供的数据总计”长期为 0 的问题。

This commit is contained in:
ryan
2026-07-12 19:02:52 +08:00
parent c624512da6
commit 69467914fc
5 changed files with 48 additions and 9 deletions
@@ -47,6 +47,7 @@ func BatchInsertNodeAccessLogs(ctx context.Context, logs []analyticsmodel.NodeAc
logItem.Host,
logItem.Path,
logItem.StatusCode,
logItem.BytesSent,
createdAt.UTC(),
); err != nil {
return fmt.Errorf("append node access log to batch: %w", err)
@@ -57,4 +58,4 @@ func BatchInsertNodeAccessLogs(ctx context.Context, logs []analyticsmodel.NodeAc
return fmt.Errorf("send clickhouse batch: %w", err)
}
return nil
}
}