recordAppStartAttribute method

  1. @override
Future<void> recordAppStartAttribute(
  1. String key,
  2. String value
)
override

Sets an attribute on the in-flight native cold-start app.start span.

Global attributes cannot cover this: native appends those when a span starts, and app.start starts at process creation, before Dart runs.

Defaults to a no-op.

Implementation

@override
Future<void> recordAppStartAttribute(String key, String value) async {
  try {
    await startupChannel.invokeMethod('recordAppStartAttribute', {
      'key': key,
      'value': value,
    });
  } on MissingPluginException {
    // Platform has no native handler yet — the attribute is not recorded.
  }
}