TracerProviderBase class
A registry for creating named api.Tracers.
- Implemented types
- Implementers
Constructors
-
TracerProviderBase({List<
SpanProcessor> processors = const [], dynamic resource, TimeProvider? timeProvider, Sampler sampler = const sdk.ParentBasedSampler(sdk.AlwaysOnSampler()), IdGenerator idGenerator = const sdk.IdGenerator(), SpanLimits spanLimits = const sdk.SpanLimits()})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- idGenerator → IdGenerator
-
final
-
processors
→ List<
SpanProcessor> -
final
- resource → Resource
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampler → Sampler
-
final
- spanLimits → SpanLimits
-
final
-
spanProcessors
→ List<
SpanProcessor> -
no setter
-
tracers
→ Map<
String, Tracer> -
final
Methods
-
forceFlush(
) → void -
Flush all registered span processors.
override
-
getTracer(
String name, {String version = '', String schemaUrl = '', List< Attribute> attributes = const []}) → 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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited