installProviderStallForensics function

void installProviderStallForensics()

The io composition root for the provider forensics (idempotent; every seam keeps an earlier install). Call once at host startup — bin/ and embedding VM apps; the web build never imports this file.

Implementation

void installProviderStallForensics() {
  providerStackEnvLookup ??= (name) => Platform.environment[name];
  connTraceStderrSink ??= stderr.writeln;
  connTraceObservedClientFactory ??= () => IOClient(observeHttpClient());
  installStallSentinelDiskSink();
}