TracerProviderBase constructor
TracerProviderBase({
- List<
SpanProcessor> ? processors, - Resource? resource,
- Sampler? sampler,
- IdGenerator? idGenerator,
- SpanLimits? spanLimits,
Implementation
TracerProviderBase(
{List<api.SpanProcessor>? processors,
sdk.Resource? resource,
sdk.Sampler? sampler,
api.IdGenerator? idGenerator,
sdk.SpanLimits? spanLimits})
: _processors = processors ?? [], // Default to a no-op TracerProvider.
_resource = resource ?? sdk.Resource([]),
_sampler = sampler ?? sdk.ParentBasedSampler(sdk.AlwaysOnSampler()),
_idGenerator = idGenerator ?? sdk.IdGenerator(),
_spanLimits = spanLimits ?? sdk.SpanLimits();