AIP usage metrics and observability

To start using Workflow Lineage (previously known as Workflow Builder), open a Workshop application or functions repository and use the keyboard shortcut Cmd+I (macOS) or Ctrl+I (Windows) to view the relevant Workflow Lineage graph depicting the objects, actions, and functions that back the application.

AIP usage metrics

The following sections will help you understand the various AIP usage metrics viewable in Workflow Lineage.

Model usage coloring

Example Workflow Lineage with model usage coloring.

Workflow Lineage allows you to view model metrics for model requests and token usage. There are three types of model usage metrics:

  • Successful: Total successful model requests or tokens used in attempts made by the specified model.
  • Attempted: Total attempts made by the model, including successful and rate-limited attempts.
  • Rate-limited: Total rate-limited attempts made.

Under Model usage, specify whether you want to view Model requests or Token usage metrics.

Model requests shows the total number of specified requests on model nodes in your Workflow Lineage.

Example Workflow Lineage with model requests coloring.

Token usage shows the number of tokens used for Workshop applications, Automations, or third-party OSDK applications. Token counts on Logic nodes are the token counts used in the Logic application debugger.

Example Workflow Lineage with token usage coloring.

Model usage charts

You can view the token usage or model requests over time for Workshop applications, Automations, and third-party applications (Ontology SDK applications) in a line chart by selecting the nodes and opening the Model usage charts panel at the bottom.

Example Workflow Lineage with token usage coloring.

To view the specific value for a particular resource, hover over the graph itself. The same filters that are used in the color legend explained above also appear in the charts panel.

Function metrics

Select a Logic function node, then open Function metrics at the bottom of the screen to view:

  • Executions: Successful and failed execution counts over time.
  • P95 duration: The rolling 95th percentile of execution duration, weighted toward recent executions.

Workshop weekly usage metrics

Select Workshop nodes on the graph, then open Weekly views in the bottom panel to view total or unique views for the selected Workshop modules.

The panel displays each Workshop module by week in a clustered bar chart for the past four weeks.

Evaluation results

You can view AIP Evals results directly in Workflow Lineage to assess performance across your workflow and identify resources that need attention.

Workflow Lineage shows evaluation success rate colors and the Evals bottom panel with linked evaluation suites and test case pass counts.

Evals bottom panel

To inspect evaluations for resources in your workflow:

  1. Select AIP Logic or function nodes on the graph.
  2. Open the Evals tab in the bottom panel.
  3. Review the linked evaluation suites and test case pass counts for the selected resources.
  4. Open results from the panel to investigate individual test cases.

The panel also identifies resources without linked evaluations. To configure evaluations for these resources, see Create an evaluation suite.

Evals success rate color mode

Select Evals success rate as the graph's color mode to visualize evaluation results across your workflow.

Each resource's success rate is the percentage of test cases that passed across the most recent run of each linked evaluation suite on the main branch. Workflow Lineage combines test case counts across these runs to calculate the rate.

The legend also distinguishes resources with incomplete evaluations, no linked evaluations, or results you cannot access. Only evaluation results you have permission to view are included in the displayed results and success rates.

Ontology and AIP observability

Workflow Lineage provides observability features to help you monitor and debug your AIP workflows. You can track execution history, visualize distributed traces, access detailed logs, and analyze performance metrics for your functions, actions, language models, and automations.

Learn more about Ontology and AIP observability features.