Last active
October 6, 2015 07:32
-
-
Save lawik/1d8c315002eeccd6c085 to your computer and use it in GitHub Desktop.
Grossly simplified client
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
from newrelic import agent as nr | |
class ReqRepClient(object): | |
def send(self, tracking_id, method, data): | |
transaction = nr.current_transaction() | |
with nr.ExternalTrace(transaction, 'reqrep', url=self.server_endpoint, method=method): | |
return self._send(tracking_id, method, data) | |
def _send(self, tracking_id, method, data): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment