def test_name_callback_default(self):

    def name_callback(method, url):
        return 123
    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, 'HTTP GET')
def test_name_callback_default(self):

    def name_callback(method, url):
        return 123
    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, 'HTTP GET')