feat(ops): upload node logs and task traffic [CI]
This commit is contained in:
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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user