Skip to content

Commit c9adef9

Browse files
z.s.zakharovzirain
authored andcommitted
feat: Set client samplint to 0 by default
Signed-off-by: z.s.zakharov <z.s.zakharov@tinkoff.ru>
1 parent cbf1eba commit c9adef9

19 files changed

Lines changed: 84 additions & 35 deletions

api/v1alpha1/shared_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ type Tracing struct {
943943
SamplingFraction *gwapiv1.Fraction `json:"samplingFraction,omitempty"`
944944
// ClientSamplingFraction represents the fraction of requests that should be
945945
// selected for tracing when requested by the client.
946+
// If unspecified, client-forced tracing is disabled by default and users must
947+
// set this field to opt in.
946948
//
947949
// +optional
948950
ClientSamplingFraction *gwapiv1.Fraction `json:"clientSamplingFraction,omitempty"`

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,6 +3156,8 @@ spec:
31563156
description: |-
31573157
ClientSamplingFraction represents the fraction of requests that should be
31583158
selected for tracing when requested by the client.
3159+
If unspecified, client-forced tracing is disabled by default and users must
3160+
set this field to opt in.
31593161
properties:
31603162
denominator:
31613163
default: 100

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_envoyproxies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16331,6 +16331,8 @@ spec:
1633116331
description: |-
1633216332
ClientSamplingFraction represents the fraction of requests that should be
1633316333
selected for tracing when requested by the client.
16334+
If unspecified, client-forced tracing is disabled by default and users must
16335+
set this field to opt in.
1633416336
properties:
1633516337
denominator:
1633616338
default: 100

charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,6 +3155,8 @@ spec:
31553155
description: |-
31563156
ClientSamplingFraction represents the fraction of requests that should be
31573157
selected for tracing when requested by the client.
3158+
If unspecified, client-forced tracing is disabled by default and users must
3159+
set this field to opt in.
31583160
properties:
31593161
denominator:
31603162
default: 100

charts/gateway-helm/charts/crds/crds/generated/gateway.envoyproxy.io_envoyproxies.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16330,6 +16330,8 @@ spec:
1633016330
description: |-
1633116331
ClientSamplingFraction represents the fraction of requests that should be
1633216332
selected for tracing when requested by the client.
16333+
If unspecified, client-forced tracing is disabled by default and users must
16334+
set this field to opt in.
1633316335
properties:
1633416336
denominator:
1633516337
default: 100

internal/xds/translator/testdata/out/xds-ir/tracing-datadog-uds.listeners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
serverHeaderTransformation: PASS_THROUGH
3030
statPrefix: http-10080
3131
tracing:
32-
clientSampling:
33-
value: 100
32+
clientSampling: {}
3433
customTags:
3534
- environment:
3635
defaultValue: '-'

internal/xds/translator/testdata/out/xds-ir/tracing-datadog.listeners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
serverHeaderTransformation: PASS_THROUGH
3030
statPrefix: http-10080
3131
tracing:
32-
clientSampling:
33-
value: 100
32+
clientSampling: {}
3433
customTags:
3534
- environment:
3635
defaultValue: '-'

internal/xds/translator/testdata/out/xds-ir/tracing-endpoint-stats.listeners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
serverHeaderTransformation: PASS_THROUGH
3030
statPrefix: http-10080
3131
tracing:
32-
clientSampling:
33-
value: 100
32+
clientSampling: {}
3433
customTags:
3534
- environment:
3635
defaultValue: '-'

internal/xds/translator/testdata/out/xds-ir/tracing-otel-headers.listeners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
serverHeaderTransformation: PASS_THROUGH
3030
statPrefix: http-10080
3131
tracing:
32-
clientSampling:
33-
value: 100
32+
clientSampling: {}
3433
overallSampling:
3534
value: 100
3635
provider:

internal/xds/translator/testdata/out/xds-ir/tracing-otel-sampler-always-on.listeners.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
serverHeaderTransformation: PASS_THROUGH
3030
statPrefix: http-10080
3131
tracing:
32-
clientSampling:
33-
value: 100
32+
clientSampling: {}
3433
overallSampling:
3534
value: 100
3635
provider:

0 commit comments

Comments
 (0)