Commit b7f1c66
Lazy-import OpenAIAgentsPlugin to fix opentelemetry.sdk import error
The top-level import of OpenAIAgentsPlugin in temporal/utils.py triggers
the temporalio.contrib.opentelemetry chain which requires opentelemetry-sdk.
This breaks all agents (including sync ones) when opentelemetry-sdk is not
installed. Moving the import to the only function that uses it
(get_temporal_client) avoids this for non-Temporal agents.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0bda3d8 commit b7f1c66
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments