Skip to content

Commit d46bfb0

Browse files
XSAMMrAlias
andauthored
Fix comment of the RecordOnly sampling decision (open-telemetry#6257)
Co-authored-by: Tyler Yahn <[email protected]>
1 parent 51cf2d7 commit d46bfb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/trace/sampling.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ const (
4747
// Drop will not record the span and all attributes/events will be dropped.
4848
Drop SamplingDecision = iota
4949

50-
// Record indicates the span's `IsRecording() == true`, but `Sampled` flag
51-
// *must not* be set.
50+
// RecordOnly indicates the span's IsRecording method returns true, but trace.FlagsSampled flag
51+
// must not be set.
5252
RecordOnly
5353

54-
// RecordAndSample has span's `IsRecording() == true` and `Sampled` flag
55-
// *must* be set.
54+
// RecordAndSample indicates the span's IsRecording method returns true and trace.FlagsSampled flag
55+
// must be set.
5656
RecordAndSample
5757
)
5858

0 commit comments

Comments
 (0)