After talking with NewRelic guys...

I'm implementing this as a plugin.

The future plan will be to implement with the agent sdk.