Transport tap data

Trace format for the tap transport socket extension. This dumps plain text read/write sequences on a socket.

data.tap.v2alpha.Connection

[data.tap.v2alpha.Connection proto]

Connection properties.

{
  "local_address": "{...}",
  "remote_address": "{...}"
}
Copy to clipboard
local_address

(core.Address) Local address.

remote_address

(core.Address) Remote address.

data.tap.v2alpha.SocketEvent

[data.tap.v2alpha.SocketEvent proto]

Event in a socket trace.

{
  "timestamp": "{...}",
  "read": "{...}",
  "write": "{...}",
  "closed": "{...}"
}
Copy to clipboard
timestamp

(Timestamp) Timestamp for event.

read

(data.tap.v2alpha.SocketEvent.Read) Read or write with content as bytes string.

Only one of read, write, closed may be set.

write

(data.tap.v2alpha.SocketEvent.Write) Read or write with content as bytes string.

Only one of read, write, closed may be set.

closed

(data.tap.v2alpha.SocketEvent.Closed) Read or write with content as bytes string.

Only one of read, write, closed may be set.

data.tap.v2alpha.SocketEvent.Read

[data.tap.v2alpha.SocketEvent.Read proto]

Data read by Envoy from the transport socket.

{
  "data": "{...}"
}
Copy to clipboard
data

(data.tap.v2alpha.Body) Binary data read.

data.tap.v2alpha.SocketEvent.Write

[data.tap.v2alpha.SocketEvent.Write proto]

Data written by Envoy to the transport socket.

{
  "data": "{...}",
  "end_stream": "..."
}
Copy to clipboard
data

(data.tap.v2alpha.Body) Binary data written.

end_stream

(bool) Stream was half closed after this write.

data.tap.v2alpha.SocketEvent.Closed

[data.tap.v2alpha.SocketEvent.Closed proto]

The connection was closed.

{}
Copy to clipboard

data.tap.v2alpha.SocketBufferedTrace

[data.tap.v2alpha.SocketBufferedTrace proto]

Sequence of read/write events that constitute a buffered trace on a socket.

{
  "trace_id": "...",
  "connection": "{...}",
  "events": [],
  "read_truncated": "...",
  "write_truncated": "..."
}
Copy to clipboard
trace_id

(uint64) Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used for long term stable uniqueness. Matches connection IDs used in Envoy logs.

connection

(data.tap.v2alpha.Connection) Connection properties.

events

(repeated data.tap.v2alpha.SocketEvent) Sequence of observed events.

read_truncated

(bool) Set to true if read events were truncated due to the max_buffered_rx_bytes setting.

write_truncated

(bool) Set to true if write events were truncated due to the max_buffered_tx_bytes setting.

data.tap.v2alpha.SocketStreamedTraceSegment

[data.tap.v2alpha.SocketStreamedTraceSegment proto]

A streamed socket trace segment. Multiple segments make up a full trace.

{
  "trace_id": "...",
  "connection": "{...}",
  "event": "{...}"
}
Copy to clipboard
trace_id

(uint64) Trace ID unique to the originating Envoy only. Trace IDs can repeat and should not be used for long term stable uniqueness. Matches connection IDs used in Envoy logs.

connection

(data.tap.v2alpha.Connection) Connection properties.

Only one of connection, event may be set.

event

(data.tap.v2alpha.SocketEvent) Socket event.

Only one of connection, event may be set.