Skip to content

Commit 5f23509

Browse files
committed
HPCC-33298 Code review2
- Rename generic config value Signed-off-by: Rodrigo Pastrana <[email protected]>
1 parent 35c8de9 commit 5f23509

5 files changed

+11
-6
lines changed

helm/examples/tracing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ All configuration options detailed here are part of the HPCC Systems Helm chart,
1515
- enableOTELDebugLogging - If true, OTel library logging level set to debug, otherwise warning
1616
- sampling - Defines head sampling strategy. Decision to sample or drop a span or trace is not made by inspecting the trace as a whole. https://opentelemetry.io/docs/concepts/sampling/
1717
- type "AlwaysOff" | "AlwaysOn" | "Ratio"
18-
- argument - Optional sampling type configuration value. Currently, only supported value applies to the "Ratio" sampling type. The argument value is a string representing a numeric value betwen 0.0 and 1.0. This value represents the ratio of trace/spans to sample
18+
- ratio - Required if Ratio sampling type enabled. Represents the ratio of trace/spans to sample Must be a numeric value betwen 0.0 and 1.0.
1919
- parentBased - Optional boolean. Determines if the sampling policy honors the remote root span sampled flag
2020
- resourceAttributes: - Defines OTel specific resource attribute configuration values
2121
which are appended to the runtime OTEL_RESOURCE_ATTRIBUTES. See OTel doc: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration

helm/examples/tracing/baremetal-otlp-http-localhost-sample.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<exporters consoleDebug="true" endpoint="http://localhost:4318/v1/traces" type="OTLP-HTTP">
66
<batch enabled="false" maxQueueSize="4095" scheduledDelayMillis="6001" maxExportBatchSize="511"/>
77
</exporters>
8-
<sampling type="Ratio" argument="0.1" parentBased="true"/>
8+
<sampling type="Ratio" ratio="0.1" parentBased="true"/>
99
</tracing>
1010
</Software>
1111
</Environment>

helm/examples/tracing/otlp-http-collector-default-sampled.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ global:
22
tracing:
33
sampling:
44
type: Ratio #Head sampling based on simple ratio
5-
argument: "0.1" #only sample 10% of traces/spans
5+
ratio: 0.1 #only sample 10% of traces/spans
66
parentBased: true #Sampling strategy based on parent's sampling
77
exporters:
88
- type: OTLP-HTTP

helm/hpcc/values.schema.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,9 @@
11791179
"enum": ["AlwaysOff", "AlwaysOn", "Ratio"],
11801180
"description": "Name of the Head Sampling type AlwaysOff|AlwaysOn|Ratio"
11811181
},
1182-
"argument" : {
1183-
"type": "string",
1184-
"description": "Optional - Sampling type specific configuration value. Such as the ratio for the Ratio sampling type."
1182+
"ratio" : {
1183+
"type": "number",
1184+
"description": "Required if sampling type set to Ratio - Represents the sampling ratio value."
11851185
},
11861186
"parentBased" : {
11871187
"type": "boolean",

helm/hpcc/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ global:
3131
alwaysCreateTraceIds: true
3232
resourceAttributes: # used to declare OTEL Resource Attribute config values
3333
deploymentEnvironment: development # used to anotate tracing spans' environment identifier (development/production/statiging/etc)
34+
sampling:
35+
type: Ratio #Head sampling based on simple ratio
36+
ratio: 0.1 #only sample 10% of traces/spans
37+
parentBased: true #Sampling strategy based on parent's sampling
38+
3439

3540
## resource settings for stub components
3641
#stubInstanceResources:

0 commit comments

Comments
 (0)