Narrative:

Shortly after takeoff from runway 22R at bos, ATC advised to fly runway heading. I looked up and saw a company aircraft on missed approach from runway 27 at bos. I took control of aircraft and made an immediate right turn to avoid a collision.

Google
 

Original NASA ASRS Text

Title: POTENTIAL CONFLICT OCCURS WHEN ACR X ON DEP CONFLICTS WITH ACR Y ON MISSED APCH OFF THE ARR RWY 27 AT BOS. SEE AND AVOID CONCEPT USED BY PIC OF ACR X.

Narrative: SHORTLY AFTER TKOF FROM RWY 22R AT BOS, ATC ADVISED TO FLY RWY HDG. I LOOKED UP AND SAW A COMPANY ACFT ON MISSED APCH FROM RWY 27 AT BOS. I TOOK CTL OF ACFT AND MADE AN IMMEDIATE R TURN TO AVOID A COLLISION.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.