Skip to content

Commit

Permalink
fix(MeshTrace): invalid sampling default values (backport of #11548) (#…
Browse files Browse the repository at this point in the history
…11553)

* fix(MeshTrace): invalid sampling default values (#11548)
* test(kumactl): update golden files

Signed-off-by: Mike Beaumont <[email protected]>
Co-authored-by: Mike Beaumont <[email protected]>
  • Loading branch information
kumahq[bot] and michaelbeaumont authored Sep 25, 2024
1 parent 1602bb7 commit 738a0c4
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4921,7 +4921,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -4932,13 +4932,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -4948,7 +4948,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4921,7 +4921,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -4932,13 +4932,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -4948,7 +4948,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5144,7 +5144,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -5155,13 +5155,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -5171,7 +5171,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4941,7 +4941,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -4952,13 +4952,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -4968,7 +4968,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
10 changes: 5 additions & 5 deletions app/kumactl/cmd/install/testdata/install-crds.all.golden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6345,7 +6345,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -6356,13 +6356,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -6372,7 +6372,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6568,7 +6568,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -6579,13 +6579,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -6595,7 +6595,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
10 changes: 5 additions & 5 deletions deployments/charts/kuma/crds/kuma.io_meshtraces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -153,13 +153,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -169,7 +169,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
14 changes: 7 additions & 7 deletions docs/generated/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8193,7 +8193,7 @@ components:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: >-
Target percentage of requests that will be force traced
if the
Expand All @@ -8209,7 +8209,7 @@ components:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: >-
Target percentage of requests will be traced
Expand All @@ -8219,11 +8219,11 @@ components:
random sampling). This field functions as an upper limit
on the total
configured sampling rate. For instance, setting
client_sampling to 100%
configured sampling rate. For instance, setting client
to 100
but overall_sampling to 1% will result in only 1% of
client requests with
but overall to 1 will result in only 1% of client
requests with
the appropriate headers to be force traced. Mirror of
Expand All @@ -8237,7 +8237,7 @@ components:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: >-
Target percentage of requests that will be randomly
selected for trace
Expand Down
10 changes: 5 additions & 5 deletions docs/generated/raw/crds/kuma.io_meshtraces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be force traced if the
'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
Expand All @@ -153,13 +153,13 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests will be traced
after all other sampling checks have been applied (client, force tracing,
random sampling). This field functions as an upper limit on the total
configured sampling rate. For instance, setting client_sampling to 100%
but overall_sampling to 1% will result in only 1% of client requests with
configured sampling rate. For instance, setting client to 100
but overall to 1 will result in only 1% of client requests with
the appropriate headers to be force traced. Mirror of
overall_sampling in Envoy
https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
Expand All @@ -169,7 +169,7 @@ spec:
anyOf:
- type: integer
- type: string
default: 100%
default: 100
description: |-
Target percentage of requests that will be randomly selected for trace
generation, if not requested by the client or not forced.
Expand Down
Loading

0 comments on commit 738a0c4

Please sign in to comment.