From 0d0231b51203c446724bdbeb4ba5891ed54b6646 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Fri, 26 Sep 2025 09:26:56 -0700 Subject: [PATCH] Quick fix to make VS Code Extension port functional (#941) --- python/packages/main/agent_framework/observability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/packages/main/agent_framework/observability.py b/python/packages/main/agent_framework/observability.py index 26081317ca..3c45056e83 100644 --- a/python/packages/main/agent_framework/observability.py +++ b/python/packages/main/agent_framework/observability.py @@ -709,7 +709,7 @@ def setup_observability( ) if OBSERVABILITY_SETTINGS.vs_code_extension_port: endpoint = f"http://localhost:{OBSERVABILITY_SETTINGS.vs_code_extension_port}" - if OBSERVABILITY_SETTINGS.check_endpoint_already_configured(endpoint): + if not OBSERVABILITY_SETTINGS.check_endpoint_already_configured(endpoint): new_exporters.extend(_get_otlp_exporters(endpoints=[endpoint])) OBSERVABILITY_SETTINGS._configure(credential=credential, additional_exporters=new_exporters) # pyright: ignore[reportPrivateUsage]