Skip to content

Commit 36f5b72

Browse files
authored
Don't run tracing shutdown behavior if disabled (#503)
Towards #502
1 parent 5727a1c commit 36f5b72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/agents/tracing/setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ def create_span(
201201
)
202202

203203
def shutdown(self) -> None:
204+
if self._disabled:
205+
return
206+
204207
try:
205208
logger.debug("Shutting down trace provider")
206209
self._multi_processor.shutdown()

0 commit comments

Comments
 (0)