Tap 通用資料 (proto)
data.tap.v3.Body
已攔截的資料主體的包裝。這包括 HTTP 請求/回應主體、傳輸層 socket 接收和傳輸的資料等。
{
"as_bytes": ...,
"as_string": ...,
"truncated": ...
}
- as_bytes
(bytes) 主體資料以位元組表示。預設情況下,攔截的主體資料會在此欄位中呈現,因為 proto
bytes
類型可以包含任何有效的位元組。
- as_string
(string) 主體資料以字串表示。只有在選擇 JSON_BODY_AS_STRING sink 格式類型時才會使用此欄位。請參閱該選項的文件,了解為何這很有用。
- truncated
(bool) 指定是否已截斷主體資料,以符合指定的 max_buffered_rx_bytes 和 max_buffered_tx_bytes 設定。
data.tap.v3.Connection
[data.tap.v3.Connection proto]
連線屬性。
{
"local_address": {...},
"remote_address": {...}
}
- local_address
(config.core.v3.Address) 本機位址。
- remote_address
(config.core.v3.Address) 遠端位址。