mlx-bun library API
    Preparing search index...

    Request-local diagnostic trace. Callers pass it explicitly because the continuous scheduler interleaves rows and cannot safely use ambient async context. No instance is created unless MLX_BUN_P2R_TRACE=1.

    Index
    requestId: string
    route: string
    traceId: string
    • Start one span. The returned closer is idempotent so finally blocks and early exits cannot double-record a phase.

      Parameters

      • phase: P2RTracePhase
      • Optionalattributes: Readonly<Record<string, string | number | boolean | null>>

      Returns () => void