newrelic/rpm — pull request #49 by mdub (2011-12-18 22:25:19+00:00)
Title: Fix to track database interactions performed within a fiber.Store the current TransactionSampleBuilder in Hash indexed by thread, ra...

...ther than a Thread local.

While this seems strange, pointless, and wrong, it's nececessary so that we can track database interactions performed outside the main Fiber (of a Thread). Thread-locals don't work so well, because they are, in fact, Fiber-local.

Refer http://newrelic.zendesk.com/tickets/3702