Don't run tracing shutdown behavior if disabled (#503)

Towards #502
This commit is contained in:
Rohan Mehta 2025-04-14 12:46:00 -04:00 committed by GitHub
parent 5727a1c73a
commit 36f5b72449
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,6 +201,9 @@ class TraceProvider:
)
def shutdown(self) -> None:
if self._disabled:
return
try:
logger.debug("Shutting down trace provider")
self._multi_processor.shutdown()