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