add x-request-id in responses (#3366)

This commit is contained in:
Denis Mishin 2022-05-16 18:22:20 -04:00 committed by GitHub
parent e624ad6331
commit 51e716ef54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -441,6 +441,8 @@ func (b *Builder) buildMainHTTPConnectionManagerFilter(
return nil, err
}
tc := marshalAny(&envoy_http_connection_manager.HttpConnectionManager{
AlwaysSetRequestIdInResponse: true,
CodecType: options.GetCodecType().ToEnvoy(),
StatPrefix: "ingress",
RouteSpecifier: &envoy_http_connection_manager.HttpConnectionManager_RouteConfig{

View file

@ -134,6 +134,7 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
}
}
}],
"alwaysSetRequestIdInResponse": true,
"codecType": "HTTP1",
"commonHttpProtocolOptions": {
"idleTimeout": "300s"