TracerProviderBase constructor

TracerProviderBase({
  1. List<SpanProcessor> processors = const [],
  2. dynamic resource,
  3. TimeProvider? timeProvider,
  4. Sampler sampler = const sdk.ParentBasedSampler(sdk.AlwaysOnSampler()),
  5. IdGenerator idGenerator = const sdk.IdGenerator(),
  6. 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();