Skip to content

Commit 540ba2c

Browse files
committed
add sampling rate to configuration
1 parent 36d8b0a commit 540ba2c

File tree

1 file changed

+7
-2
lines changed
  • keps/sig-instrumentation/647-apiserver-tracing

1 file changed

+7
-2
lines changed

keps/sig-instrumentation/647-apiserver-tracing/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,13 @@ type TracingConfiguration struct {
120120
// +optional
121121
// URL of the collector that's running on the control-plane node.
122122
// the APIServer uses the egressType ControlPlane when sending data to the collector.
123-
// The default is localhost:4317
124-
URL *string `json:"url,omitempty" protobuf:"bytes,3,opt,name=url"`
123+
// Defaults to localhost:4317
124+
URL *string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"`
125+
126+
// +optional
127+
// SamplingRatePerMillion is the number of samples to collect per million spans.
128+
// Defaults to 0.
129+
SamplingRatePerMillion *int32 `json:"samplingRatePerMillion,omitempty" protobuf:"varint,2,opt,name=samplingRatePerMillion"`
125130
}
126131
```
127132

0 commit comments

Comments
 (0)