A string that uniquely describes the sampling behavior of this instance.
Checks if trace belong the sample.
Used to check the probability.
a boolean. True if the traceId is in probability False if the traceId is not in probability.
Checks whether span needs to be created and tracked.
TODO: Consider to add required arguments https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sampling-api.md#shouldsample
whether span should be sampled or not.
Returns the sampler name or short description with the configuration.
Generated using TypeDoc
This interface represent a sampler . This interface represent a sampler. Sampling is a mechanism to control the noise and overhead introduced by OpenTelemetry by reducing the number of samples of traces collected and sent to the backend.