ScreenNameSpanProcessor class
Stamps the current screen name onto every span at start time.
Mirrors the iOS ScreenNameSpanProcessor: when a screen name is available
from RouteObserverService (or an injected getScreenName), sets the
screen.name attribute. When null or empty, leaves the span unchanged.
- Implemented types
Constructors
- ScreenNameSpanProcessor({String? getScreenName()?})
-
Creates a processor. When
getScreenNameis omitted, reads RouteObserverService.currentScreenName.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
forceFlush(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnd(
ReadOnlySpan span) → void -
override
-
onStart(
ReadWriteSpan span, Context parentContext) → void -
override
-
shutdown(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited