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/videosdk_otel-js/issues/852 for more information.
- Inheritance
-
- Object
- TracerProviderBase
- WebTracerProvider
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spanProcessors
→ List<
SpanProcessor> -
no setterinherited
Methods
-
forceFlush(
) → void -
Flush all registered span processors.
inherited
-
getTracer(
String name, {String? version = ''}) → Tracer -
Returns a Tracer, creating one if one with the given
name
andversion
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