Add caught time stamp for http tap filter (#28472)

Signed-off-by: fchen7 <cliff.chen@nokia-sbell.com>

Mirrored from https://github.com/envoyproxy/envoy @ 29c2a5c49f7ba81a738db018b21c032b578a5069
main
update-envoy[bot] 1 year ago
parent b4d71f2a04
commit 5cffa1f275
  1. 5
      envoy/data/tap/v3/http.proto
  2. 5
      envoy/extensions/filters/http/tap/v3/tap.proto

@ -5,6 +5,8 @@ package envoy.data.tap.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/data/tap/v3/common.proto";
import "google/protobuf/timestamp.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
@ -34,6 +36,9 @@ message HttpBufferedTrace {
// Message trailers.
repeated config.core.v3.HeaderValue trailers = 3;
// The timestamp after receiving the message headers.
google.protobuf.Timestamp headers_received_time = 4;
}
// Request message.

@ -26,4 +26,9 @@ message Tap {
// Common configuration for the HTTP tap filter.
common.tap.v3.CommonExtensionConfig common_config = 1
[(validate.rules).message = {required: true}];
// Indicates whether HTTP tap filter records the time stamp for request/response headers.
// Request headers time stamp is stored after receiving request headers.
// Response headers time stamp is stored after receiving response headers.
bool record_headers_received_time = 2;
}

Loading…
Cancel
Save