Skip to content

Commit f22d3ff

Browse files
Merge pull request #6927 from lgayhardt/patch-79
update tracing
2 parents 2452230 + 9aebf19 commit f22d3ff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/machine-learning/prompt-flow/how-to-develop-flow.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ After the flow run completes, you can select **View outputs** to check all histo
128128

129129
:::image type="content" source="./media/how-to-develop-flow/authoring-test-result.png" alt-text="Screenshot of flow test result." lightbox ="./media/how-to-develop-flow/authoring-test-result.png":::
130130

131+
#### Trace
132+
133+
Tracing is disabled by default, to enable tracing you need to set the environment variable `PF_DISABLE_TRACING` to `false`. One way you can do this is by adding the following to the python node:
134+
135+
```python
136+
import os
137+
os.environ["PF_DISABLE_TRACING"] = "false"
138+
```
139+
131140
Select the **Trace** tab on the **Outputs** screen to see a graph that provides information about the duration and associated token cost of the flow. Select **flow** under **node name** to see detailed flow overview information in the right pane.
132141

133142
Expand **flow** and select any step to see detailed information for that step. You can see the duration of each node execution in the span tree. For more information, see [Trace Span Specification](https://microsoft.github.io/promptflow/reference/trace-span-spec-reference.html).

0 commit comments

Comments
 (0)