This repository holds two methods that let you mark a deployment to NewRelic by either calling a the mark method directly or wrapping an existing method with a decorator.  The decorator method may have to be slightly altered for your needs.