logVersion method

  1. @override
void logVersion(
  1. String uuid,
  2. String clientId,
  3. String clientVersion,
  4. String serverVersion,
  5. String sdkVersion,
)
override

Signal that the client has started analysis server. This method should be invoked exactly one time.

Implementation

@override
void logVersion(String uuid, String clientId, String clientVersion,
    String serverVersion, String sdkVersion) {
  String normalize(String? value) =>
      value != null && value.isNotEmpty ? value : 'unknown';

  _instrumentationLogger.log(_join([
    TAG_VERSION,
    uuid,
    normalize(clientId),
    normalize(clientVersion),
    serverVersion,
    sdkVersion
  ]));
}