You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
7 years ago
|
syntax = "proto3";
|
||
|
|
||
6 years ago
|
// [#protodoc-title: Transport tap data]
|
||
|
// Trace format for the tap transport socket extension. This dumps plain text read/write
|
||
7 years ago
|
// sequences on a socket.
|
||
|
|
||
7 years ago
|
package envoy.data.tap.v2alpha;
|
||
6 years ago
|
option java_package = "io.envoyproxy.envoy.data.tap.v2alpha";
|
||
7 years ago
|
option go_package = "v2";
|
||
|
|
||
|
import "envoy/api/v2/core/address.proto";
|
||
|
|
||
|
import "google/protobuf/timestamp.proto";
|
||
|
|
||
|
// Connection properties.
|
||
|
message Connection {
|
||
|
// Global unique connection ID for Envoy session. Matches connection IDs used
|
||
|
// in Envoy logs.
|
||
|
uint64 id = 1;
|
||
|
// Local address.
|
||
|
envoy.api.v2.core.Address local_address = 2;
|
||
|
// Remote address.
|
||
|
envoy.api.v2.core.Address remote_address = 3;
|
||
|
}
|
||
|
|
||
6 years ago
|
// Event in a trace.
|
||
7 years ago
|
message Event {
|
||
|
// Timestamp for event.
|
||
|
google.protobuf.Timestamp timestamp = 1;
|
||
|
// Data read by Envoy from the transport socket.
|
||
|
message Read {
|
||
|
// Binary data read.
|
||
|
bytes data = 1;
|
||
|
// TODO(htuch): Half-close for reads.
|
||
|
}
|
||
|
// Data written by Envoy to the transport socket.
|
||
|
message Write {
|
||
|
// Binary data written.
|
||
|
bytes data = 1;
|
||
|
// Stream was half closed after this write.
|
||
|
bool end_stream = 2;
|
||
|
}
|
||
|
// Read or write with content as bytes string.
|
||
|
oneof event_selector {
|
||
|
Read read = 2;
|
||
|
Write write = 3;
|
||
|
}
|
||
|
}
|
||
|
|
||
6 years ago
|
// Sequence of read/write events that constitute a trace on a socket.
|
||
7 years ago
|
// Multiple Trace messages might be emitted for a given connection ID, with the
|
||
|
// sink (e.g. file set, network) responsible for later reassembly.
|
||
|
message Trace {
|
||
|
// Connection properties.
|
||
|
Connection connection = 1;
|
||
|
// Sequence of observed events.
|
||
|
repeated Event events = 2;
|
||
|
}
|