def test_custom_tracer_provider(self):
    resource = resources.Resource.create({})
    result = self.create_tracer_provider(resource=resource)
    (tracer_provider, exporter) = result
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(tracer_provider=tracer_provider)
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    span = self.assert_span(exporter=exporter)
    self.assertIs(span.resource, resource)
def test_custom_tracer_provider(self):
    resource = resources.Resource.create({})
    result = self.create_tracer_provider(resource=resource)
    (tracer_provider, exporter) = result
    RequestsInstrumentor().uninstrument()
    RequestsInstrumentor().instrument(tracer_provider=tracer_provider)
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    span = self.assert_span(exporter=exporter)
    self.assertIs(span.resource, resource)