Add attributes to the current active span.
Add a named event to the current active span.
Optionalattrs: Record<string, string | number | boolean | undefined>Record a connection state transition in metrics.
Wrap an async operation in a tracing span.
Telemetry operations used by ConnectionStateManager.
Abstracts tracing and metrics to avoid a direct dependency from connection/ → server/telemetry/. Callers inject the real implementation; the default is a no-op.