TelemetryRegistry

class TelemetryRegistry(seed: List<Telemetry> = emptyList())(source)

Ordered registry of Telemetry integrations, keyed by Telemetry.name (re-register replaces, keeping the original position).

Copy-on-write via atomic CAS (the AbortController callback-list idiom): list/get serve the agent hot path from an immutable snapshot, so a concurrent register/clear can never throw ConcurrentModificationException out of a live agent call — telemetry must never alter the loop.

Since

0.3.0-beta01

Constructors

Link copied to clipboard
constructor(seed: List<Telemetry> = emptyList())

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun get(name: String): Telemetry?
Link copied to clipboard
Link copied to clipboard
fun register(integration: Telemetry)