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))
|
||||
{
|
||||
|
||||
@@ -322,6 +322,12 @@ public sealed class ProbeHeartbeatExtra
|
||||
|
||||
[JsonPropertyName("update")]
|
||||
public UpdateStatus? Update { get; set; }
|
||||
|
||||
[JsonPropertyName("runtime_logs")]
|
||||
public List<NodeLogRecord>? RuntimeLogs { get; set; }
|
||||
|
||||
[JsonPropertyName("dropped_runtime_logs")]
|
||||
public long? DroppedRuntimeLogs { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Probe's rolling QUIC connection health snapshot for one Agent/IP path.</summary>
|
||||
@@ -546,6 +552,12 @@ public sealed class AgentHeartbeatExtra
|
||||
|
||||
[JsonPropertyName("update")]
|
||||
public UpdateStatus? Update { get; set; }
|
||||
|
||||
[JsonPropertyName("runtime_logs")]
|
||||
public List<NodeLogRecord>? RuntimeLogs { get; set; }
|
||||
|
||||
[JsonPropertyName("dropped_runtime_logs")]
|
||||
public long? DroppedRuntimeLogs { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Agent 下发给 Probe 的一条线路任务(期望状态类型 <c>line_task_set</c> 里的一项)。</summary>
|
||||
|
||||
Reference in new issue
Block a user