Skip to content

Commit c96ef48

Browse files
Update tail-based-sampling.md (#1360)
A minor change to the data type for `sample_rate`. We mention that > The sample rate must be greater than or equal to `0` and less than or equal to `1`. which if restricted to an `int` type would only allow `0` and `1`. A more reasonable (unless there is a reason not clear to me) data type here would be `float`, allowing any decimal precision value, like the `0.01` mentioned as example. Co-authored-by: Benjamin Ironside Goldstein <[email protected]>
1 parent 0d74eef commit c96ef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/observability/apm/tail-based-sampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ See [Tail-based sampling](/solutions/observability/apm/transaction-sampling.md#a
134134

135135
The sample rate to apply to trace events matching this policy. Required in each policy.
136136

137-
The sample rate must be greater than or equal to `0` and less than or equal to `1`. For example, a `sample_rate` of `0.01` means that 1% of trace events matching the policy will be sampled. A `sample_rate` of `1` means that 100% of trace events matching the policy will be sampled. (int)
137+
The sample rate must be greater than or equal to `0` and less than or equal to `1`. For example, a `sample_rate` of `0.01` means that 1% of trace events matching the policy will be sampled. A `sample_rate` of `1` means that 100% of trace events matching the policy will be sampled. (float)
138138

139139
### **`trace.name`** [sampling-tail-trace-name-ref]
140140

0 commit comments

Comments
 (0)