Skip to content

Commit ec1c315

Browse files
committed
Add comment
1 parent a8d0c2e commit ec1c315

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

temporalio/contrib/openai_agents/_trace_interceptor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def uuid4(self) -> str:
301301

302302

303303
def _ensure_tracing_random() -> None:
304+
"""We use a custom uuid generator for spans to ensure that changes to user code workflow.random usage
305+
do not affect tracing and vice versa.
306+
"""
304307
instance = workflow.instance()
305308
if not hasattr(instance, "__temporal_openai_tracing_random"):
306309
setattr(

0 commit comments

Comments
 (0)