Scalzi (Fuzzy Nation, 2011, etc.) takes a stab at metafiction—and misses.
In 2456, when Ensign Andrew Dahl is assigned to the xenobiology laboratory of the Universal Union starship Intrepid, he looks forward to participating in Away Missions. Peculiarly, however, experienced crew members invariably vanish just before the officers arrive with the mission assignments. Capt. Abernathy, science officer Q'eeng and astrogator Kerensky always go along, whether their skills are required or not, along with a handful of anonymous juniors. Worse, each mission always entails a usually unnecessary confrontation with improbable and hostile entities (ice sharks, killer robots with harpoons, Borgovian land worms) during which one or more of the hapless juniors get killed in dramatically horrible fashion. Abernathy and Q'eeng always emerge unperturbed and unscathed, while Kerensky consistently gets mangled but miraculously survives. If all this sounds like they're trapped in a bad episode of Star Trek, you're not wrong: They are. Somehow, and Scalzi declines to discuss the details, the actions taking place are being dictated by the half-baked scripts of a Star Trek clone series back in 2012. This, and its entirely predictable resolution, occupies 200 pages or so. The remainder comprises three codas set in 2012 that attempt to ground the aftermath in some sort of reality. Fittingly, the starship characters, those who aren't ciphers, sound and behave like teenagers. The plot you know about. Intriguing developments, fresh ideas, dashes of originality? Forget it. It's all vaguely amusing in a sophomoric sort of way, which is fine if you're an easily diverted sophomore with a couple of hours to kill.
Check the date. If it isn't April 1st, you've been had.