Skip to content

Commit 779b031

Browse files
authored
Remove non-existing instrumentor (#42202)
When running one of the Azure AI Projects samples that uses OTel tracing, I saw the below error in the console. Removing this old instrumentor, as it no longer exists (it existed in older preview versions of azure-ai-projects package, before Agents was split to its own package azure-ai-agents). Failed to import AIAgentsInstrumentor from azure.ai.projects.telemetry.agents Traceback (most recent call last): File "C:\Users\dcohen\AppData\Local\Programs\Python\Python312\Lib\site-packages\azure\monitor\opentelemetry\_configure.py", line 332, in _setup_additional_azure_sdk_instrumentations module = __import__(module_path, fromlist=[class_name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'azure.ai.projects.telemetry'
1 parent 7a4f341 commit 779b031

File tree

1 file changed

+0
-1
lines changed
  • sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry

1 file changed

+0
-1
lines changed

sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_configure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ def _setup_additional_azure_sdk_instrumentations(configurations: Dict[str, Confi
322322

323323
instrumentors = [
324324
("azure.ai.inference.tracing", "AIInferenceInstrumentor"),
325-
("azure.ai.projects.telemetry.agents", "AIAgentsInstrumentor"),
326325
("azure.ai.agents.telemetry", "AIAgentsInstrumentor"),
327326
]
328327

0 commit comments

Comments
 (0)