TracerProviderBase constructor
TracerProviderBase({
- List<
SpanProcessor> processors = const [], - dynamic resource,
- TimeProvider? timeProvider,
- Sampler sampler = const sdk.ParentBasedSampler(sdk.AlwaysOnSampler()),
- IdGenerator idGenerator = const sdk.IdGenerator(),
- SpanLimits spanLimits = const sdk.SpanLimits(),
Implementation
TracerProviderBase(
{this.processors =
const [], // Default to a TracerProvider which does not emit traces.
resource,
sdk.TimeProvider? timeProvider,
this.sampler = const sdk.ParentBasedSampler(sdk.AlwaysOnSampler()),
this.idGenerator = const sdk.IdGenerator(),
this.spanLimits = const sdk.SpanLimits()})
: resource = resource ?? sdk.Resource([]),
_timeProvider = timeProvider ?? sdk.DateTimeTimeProvider();