feat(ops): upload node logs and task traffic [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline was successful

This commit is contained in:
justme committed 2026-10-11 23:57:13 +08:00
1 parent e82b165eb0
commit 6cf6b23585
25 files changed
+714 -13

No files matched your search

@@ -59,8 +59,13 @@ public static class RawChunkCodec
}
public static byte[] Encode(RawChunk chunk)
=> Encode(chunk, out _);
/// <summary>Encode a chunk and return the pre-compression payload size for traffic diagnostics.</summary>
public static byte[] Encode(RawChunk chunk, out int uncompressedBytes)
{
byte[] plain = EncodeBody(chunk);
uncompressedBytes = plain.Length;
using var compressed = new MemoryStream();
using (var brotli = new BrotliStream(compressed, CompressionLevel.Optimal, leaveOpen: true))
{