adds NoOpTracerProvider test case for falcon instrumentation (#3382)

Signed-off-by: Shwejan Raj, Bhupathi <Bhupathi.ShwejanRaj@fmr.com>
Signed-off-by: Bhupathi Shwejan Raj <Bhupathi.ShwejanRaj@fmr.com>
This commit is contained in:
shwejan raj
2025-06-17 21:46:26 +05:30
committed by GitHub
parent 0a03c9abf2
commit c4347e027c

View File

@ -427,6 +427,20 @@ class TestFalconInstrumentation(TestFalconBase, WsgiTestBase):
spans = self.memory_exporter.get_finished_spans()
self.assertEqual(len(spans), 0)
def test_no_op_tracer_provider(self):
FalconInstrumentor().uninstrument()
FalconInstrumentor().instrument(
tracer_provider=trace.NoOpTracerProvider()
)
self.memory_exporter.clear()
self.client().simulate_get(path="/hello")
spans = self.memory_exporter.get_finished_spans()
self.assertEqual(len(spans), 0)
def test_exclude_lists(self):
self.client().simulate_get(path="/ping")
span_list = self.memory_exporter.get_finished_spans()