From b932cbcbea2ee777de6ba74412076d6fdb1528eb Mon Sep 17 00:00:00 2001 From: "data-plane-api(CircleCI)" Date: Sun, 15 Mar 2020 19:59:19 +0000 Subject: [PATCH] router: trace mirrored requests (#10327) Signed-off-by: Kuat Yessenov Mirrored from https://github.com/envoyproxy/envoy @ 301a7a4059189c9073a31e42886a1580737165b8 --- envoy/api/v2/route/route_components.proto | 3 +++ envoy/config/route/v3/route_components.proto | 3 +++ 2 files changed, 6 insertions(+) diff --git a/envoy/api/v2/route/route_components.proto b/envoy/api/v2/route/route_components.proto index 4eb33c3b..838ead6f 100644 --- a/envoy/api/v2/route/route_components.proto +++ b/envoy/api/v2/route/route_components.proto @@ -593,6 +593,9 @@ message RouteAction { // number is <= the value of the numerator N, or if the key is not present, the default // value, the request will be mirrored. core.RuntimeFractionalPercent runtime_fraction = 3; + + // Determines if the trace span should be sampled. Defaults to true. + google.protobuf.BoolValue trace_sampled = 4; } // Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer diff --git a/envoy/config/route/v3/route_components.proto b/envoy/config/route/v3/route_components.proto index 40fd76b1..8ffc9523 100644 --- a/envoy/config/route/v3/route_components.proto +++ b/envoy/config/route/v3/route_components.proto @@ -546,6 +546,9 @@ message RouteAction { // number is <= the value of the numerator N, or if the key is not present, the default // value, the request will be mirrored. core.v3.RuntimeFractionalPercent runtime_fraction = 3; + + // Determines if the trace span should be sampled. Defaults to true. + google.protobuf.BoolValue trace_sampled = 4; } // Specifies the route's hashing policy if the upstream cluster uses a hashing :ref:`load balancer