def test_excluded_urls_explicit(self):
    url_404 = 'http://httpbin.org/status/404'
    httpretty.register_uri(httpretty.GET, url_404, status=404)
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(excluded_urls='.*/404')
    self.perform_request(self.URL)
    self.perform_request(url_404)
    self.assert_span(num_spans=1)
def test_excluded_urls_explicit(self):
    url_404 = 'http://httpbin.org/status/404'
    httpretty.register_uri(httpretty.GET, url_404, status=404)
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(excluded_urls='.*/404')
    self.perform_request(self.URL)
    self.perform_request(url_404)
    self.assert_span(num_spans=1)