From aab5104ba97d5747cb2d762600028ff21866e4e4 Mon Sep 17 00:00:00 2001 From: Zhengfei Wang Date: Mon, 13 May 2024 10:08:50 +0000 Subject: [PATCH] refine condition --- src/promptflow-devkit/promptflow/_sdk/_tracing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow-devkit/promptflow/_sdk/_tracing.py b/src/promptflow-devkit/promptflow/_sdk/_tracing.py index 2e6aed4dc06..75c53d75529 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_tracing.py +++ b/src/promptflow-devkit/promptflow/_sdk/_tracing.py @@ -459,7 +459,7 @@ def start_trace_with_devkit(collection: str, **kwargs: typing.Any) -> None: # print tracing url(s) when run is specified _print_tracing_url_from_local(pfs_port=pfs_port, collection=collection, exp=exp, run=run) - if run is not None and run_config._is_cloud_trace_destination(path=flow_path): + if run is not None and ws_triad is not None: trace_destination = run_config.get_trace_destination(path=flow_path) print( f"You can view the traces in azure portal since trace destination is set to: {trace_destination}. "