startView method
Notifies that the View identified by key starts being presented to the
user. This view will show as name in the RUM explorer, and defaults to
key if it is not provided. You can also attach custom attributes,
who's values must be supported by StandardMessageCodec.
The key passed here must match the key passed to stopView later.
Implementation
void startView(
String key, [
String? name,
Map<String, Object?> attributes = const {},
]) {
name ??= key;
final currentTime = timeProvider.now();
_currentViewInfo = _ViewInfo(key, name, currentTime);
wrap('rum.startView', logger, attributes, () {
_invMetricProvider.trackViewStart(key, currentTime);
return _platform.startView(currentTime, key, name!, attributes);
});
}