Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add cloud run tracking doc #3250

Merged
merged 4 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/cloud/azureai/tracing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ pf config set trace.destination=azureml://subscriptions/<subscription-id>/resour

Fill in with your own subscription ID, resource group name, workspace or project name, and all is ready now. You can make LLM calls, run LLM application or execute your flow with `pf flow test` or `pf run create`, you will see an Azure portal URL link in the console:

```console
You can view the traces in cloud from Azure portal: https://ml.azure.com/prompts/trace/run/<run-name>/details?wsid=/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.MachineLearningServices/workspaces/<workspace-or-project-name>
```
![trace-ui-portal](../../../media/cloud/azureai/tracing/portal_url.png)

Click the link to view the traces in Azure portal, and feel free to share it with your team members.

![trace-ui-portal](../../../media/trace/trace-ui-portal-demo.gif)
Expand Down Expand Up @@ -94,3 +93,11 @@ pf config set trace.destination=none
```

Then no traces will be logged to neither local nor cloud.


```{toctree}
:maxdepth: 1
:hidden:

run_tracking
```
32 changes: 32 additions & 0 deletions docs/cloud/azureai/tracing/run_tracking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Run tracking

:::{admonition} Experimental feature
This is an experimental feature, and may change at any time. Learn [more](../../../how-to-guides/faq.md#stable-vs-experimental).
:::

After you follow [tracing](./index.md) to set trace destination to cloud and successfully run a flow locally, there will be a run record in Azure ML workspace or Azure AI project. You can view the traces in cloud from Azure portal, and feel free to share it with your team members.

## Portal tracing run list

Except clicking the portal URL link in the console, you can also find the result in the tab `Tracing` -> `Runs`:

![img](../../../media/cloud/azureai/tracing/run_tracking_list.png)

As a result, you will not be able to find these local-to-cloud runs in the tab `Prompt flow` -> `Runs`.

## View with pfazure commands

You can also view the details of the run record with most of the [pfazure run commands](../../../reference/pfazure-command-reference.md#pfazure-run).

## Compare with a cloud run

| | Local-to-cloud run | Cloud run |
|---|---|---|
| Compute | Local | Automatic runtime/Compute instance |
| Run tracking timing | After the run is completed locally | Real-time on cloud |

## Next steps

Learn more about:
- [Run prompt flow in Azure AI](../run-promptflow-in-azure-ai.md)
- [CLI reference: pfazure](../../../reference/pfazure-command-reference.md)
Binary file added docs/media/cloud/azureai/tracing/portal_url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading