Transport tap data

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

data.tap.v3.Connection

[data.tap.v3.Connection proto]

Connection properties.

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

local_address

(config.core.v3.Address) Local address.

remote_address

(config.core.v3.Address) Remote address.

data.tap.v3.SocketEvent

[data.tap.v3.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.v3.SocketEvent.Read) Read or write with content as bytes string.

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

write

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

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

closed

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

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

data.tap.v3.SocketEvent.Read

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

Data read by Envoy from the transport socket.

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

data

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

data.tap.v3.SocketEvent.Write

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

Data written by Envoy to the transport socket.

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

data

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

end_stream

(bool) Stream was half closed after this write.

data.tap.v3.SocketEvent.Closed

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

The connection was closed.

  1. {}

data.tap.v3.SocketBufferedTrace

[data.tap.v3.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.v3.Connection) Connection properties.

events

(data.tap.v3.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.v3.SocketStreamedTraceSegment

[data.tap.v3.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.v3.Connection) Connection properties.

Only one of connection, event may be set.

event

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

Only one of connection, event may be set.