TracerProviderBase constructor

TracerProviderBase({
  1. List<SpanProcessor>? processors,
  2. Resource? resource,
  3. Sampler? sampler,
  4. IdGenerator? idGenerator,
  5. 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();