Example #1
0
 def setUp(self):
     super().setUp()
     self.tracer = self.tracer_provider.get_tracer(__name__)
     ElasticsearchInstrumentor().instrument()
Example #2
0
 def tearDown(self):
     super().tearDown()
     with self.disable_logging():
         ElasticsearchInstrumentor().uninstrument()
Example #3
0
 def test_prefix_arg(self, request_mock):
     prefix = "prefix-from-env"
     ElasticsearchInstrumentor().uninstrument()
     ElasticsearchInstrumentor(span_name_prefix=prefix).instrument()
     request_mock.return_value = (1, {}, {})
     self._test_prefix(prefix)