• Trace RPCs on localParticipant for jobCtx (else the current job). Idempotent: one interceptor per job, and the SDK keeps one registration per interceptor instance, so every connect and reconnect may install again. A missing participant (the room is not connected yet), or one without the interceptor hook (an older room SDK, a stand-in in tests), installs nothing: tracing must never be what breaks a connection. Returns the interceptor.

    Parameters

    • localParticipant: undefined | LocalParticipant
    • Optional jobCtx: JobContext<Record<string, unknown>>

    Returns TracingRpcInterceptor