installMetricTapJoining

suspend fun installMetricTapJoining(loom: Loom, exporter: WarpMetricExporter, scope: CoroutineScope, tag: Tag, config: MetricTapConfig = MetricTapConfig(), admission: LogTapAdmission = LogTapAdmission.Open): MetricTapHost

Install a metric tap where the device joins a session the puller hosts, instead of hosting one itself.

The tap's replication is symmetric — the replicator carries the device's metric buffer to the other peer regardless of which side opened the rendezvous — so a device that cannot host a server or advertise itself (an iOS device has no WebSocket server and no mDNS advertiser) can still offer its metrics by joining a laptop that hosts and advertises. The metrics still flow device → laptop. The metric-tap sibling of installLogTapJoining.

Parameters

loom

the fabric to join on (e.g. a WebSocket client loom).

exporter

the device's metric buffer to offer.

scope

the scope the host's replicator runs in.

tag

the rendezvous to join (e.g. an advertisement discovered over mDNS).

config

tap tuning.

admission

how the pulling peer is admitted — LogTapAdmission.Verify to require a join code, or LogTapAdmission.Open on a trusted link.