We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c748056 commit f4760c2Copy full SHA for f4760c2
1 file changed
instrumentation/opentelemetry-instrumentation-logging/tests/test_logging.py
@@ -244,6 +244,14 @@ def test_uninstrumented(self):
244
self.assertFalse(hasattr(record, "otelTraceID"))
245
self.assertFalse(hasattr(record, "otelTraceSampled"))
246
247
+ root_logger = logging.getLogger()
248
+ logging_handler_instances = [
249
+ handler
250
+ for handler in root_logger.handlers
251
+ if isinstance(handler, LoggingHandler)
252
+ ]
253
+ self.assertEqual(logging_handler_instances, [])
254
+
255
def test_no_op_tracer_provider(self):
256
LoggingInstrumentor().uninstrument()
257
LoggingInstrumentor().instrument(
0 commit comments