WebTracerProvider constructor

WebTracerProvider({
  1. List<SpanProcessor>? processors,
  2. Resource? resource,
  3. Sampler? sampler,
  4. TimeProvider? timeProvider,
  5. IdGenerator? idGenerator,
  6. SpanLimits? spanLimits,
})

Implementation

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