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.

  1. {
  2. "local_address": "{...}",
  3. "remote_address": "{...}"
  4. }

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.

  1. {
  2. "timestamp": "{...}",
  3. "read": "{...}",
  4. "write": "{...}",
  5. "closed": "{...}"
  6. }

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.

  1. {
  2. "data": "{...}"
  3. }

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.

  1. {
  2. "data": "{...}",
  3. "end_stream": "..."
  4. }

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.

  1. {}

data.tap.v2alpha.SocketBufferedTrace

[data.tap.v2alpha.SocketBufferedTrace proto]

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

  1. {
  2. "trace_id": "...",
  3. "connection": "{...}",
  4. "events": [],
  5. "read_truncated": "...",
  6. "write_truncated": "..."
  7. }

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

(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.

  1. {
  2. "trace_id": "...",
  3. "connection": "{...}",
  4. "event": "{...}"
  5. }

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.