Created
August 10, 2012 00:24
-
-
Save GrahamDumpleton/3309485 to your computer and use it in GitHub Desktop.
Name transaction using in_function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _name_transaction(self, f, *args): | |
transaction = newrelic.api.transaction.current_transaction() | |
if transaction: | |
name = newrelic.api.object_wrapper.callable_name(f) | |
transaction.name_transaction(name) | |
newrelic.api.in_function.wrap_in_function(module, 'application._delegate', | |
_name_transaction) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment