def test_name_callback(self):

    def name_callback(method, url):
        return ('GET' + url)
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(name_callback=name_callback)
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    span = self.assert_span()
    self.assertEqual(span.name, ('GET' + self.URL))
def test_name_callback(self):

    def name_callback(method, url):
        return ('GET' + url)
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(name_callback=name_callback)
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    span = self.assert_span()
    self.assertEqual(span.name, ('GET' + self.URL))