<PackageReference Include="OpenTelemetry" Version="1.11.2" />

OpenTelemetry.Trace.SamplingDecision

public enum SamplingDecision
Enumeration to define sampling decision.
Drop = 0

The activity will be created but not recorded. Activity.IsAllDataRequested will return false. Activity.Recorded will return false.

The activity will be created, recorded, and sampling flag will be set. Activity.IsAllDataRequested will return true. Activity.Recorded will return true.

The activity will be created and recorded, but sampling flag will not be set. Activity.IsAllDataRequested will return true. Activity.Recorded will return false.