Skip to main content

Sampler

Type Alias Sampler 

Source
pub type Sampler = Box<dyn Fn(&Span) -> bool + Send + Sync>;
Expand description

Decides whether an exporter exports a span.

PHP: the Closure(Span): bool $sampler of an exporter’s constructor.

Aliased Type§

pub struct Sampler(/* private fields */);