WebTracerProvider constructor
WebTracerProvider({
- List<
SpanProcessor> ? processors, - Resource? resource,
- Sampler? sampler,
- TimeProvider? timeProvider,
- IdGenerator? idGenerator,
- 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);