WebTracerProvider class

A api.TracerProvider which implements features specific to dart:html.

Use of WebTracerProvider with this provider results in a api.Tracer which uses the window.performance API for high-precision timestamps on the api.Spans it creates.

Note that these timestamps may be inaccurate if the executing system is suspended for sleep. See https://github.com/open-telemetry/opentelemetry-js/issues/852 for more information.

Inheritance

Constructors

WebTracerProvider({List<SpanProcessor>? processors, Resource? resource, Sampler? sampler, TimeProvider? timeProvider, IdGenerator? idGenerator, SpanLimits? spanLimits})

Properties

hashCode int
The hash code for this object.
no setterinherited
idGenerator IdGenerator
finalinherited
processors List<SpanProcessor>
finalinherited
resource Resource
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampler Sampler
finalinherited
spanLimits SpanLimits
finalinherited
spanProcessors List<SpanProcessor>
no setterinherited
tracers Map<String, Tracer>
finalinherited

Methods

forceFlush() → void
Flush all registered span processors.
inherited
getTracer(String name, {String version = '', String schemaUrl = '', List<Attribute> attributes = const []}) Tracer
Returns a Tracer, creating one if one with the given name and version is not already created.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() → void
Stop all registered span processors.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited