> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/academy/tier-2-core-skills/m09-audit-trail-inspection-examiner-reporting/lab-2-navigate-and-inspect-a-run-and.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Lab 2: Navigate and inspect a run and trace record

Hands-on lab for lesson 2 of module M09, navigate and inspect a run and trace record.

{% @uptiq-training/training-labels content="Module 9 | brand
Lesson 2 of 7 | brand
Lab 2 | success
15 minutes | neutral
Bloom level Apply | neutral" %}

{% @uptiq-training/training-navigator title="M09 Audit Trail Inspection & Examiner Reporting" content="Lesson 1: Distinguish the four log types in Control Center Observe | soon
Lesson 2: Navigate and inspect a run and trace record | soon
Lab 2: Navigate and inspect a run and trace record | current
Lesson 3: Cross-reference guardrails with evals results | soon
Lesson 4: Export audit trail data from Control Center | soon
Lab 4: Export audit trail data from Control Center
Lesson 5: Execute system agent stop and document the incident | soon
Lab 5: Execute system agent stop and document the incident
Lesson 6: Construct an examiner evidence package | soon
Lab 6: Construct an examiner evidence package
Lesson 7: Module assessment | soon" %}

## Lab overview

**Exercise title:** Navigate and Inspect a Run & Trace Record

**Difficulty level:** Apply — you will navigate a real trace structure, read span-level evidence, and link what you find to the policy that was in force.

**Estimated hands-on time:** 15 minutes (approximately 8 minutes of guided trace inspection, 4 minutes for the scenario check, and 3 minutes of orientation)

**What you will build / configure:** You will not create anything in this exercise. You will open a pre-configured agent run in Runs & Traces, navigate its three views (Trace, Graph, and Summary), locate specific span categories (LLM, Guardrail, Privacy), read the fields each span exposes, and identify the `piiMaskingConfig` field in the root span. By the end, you will be able to link the agent's action to the policy that authorized or blocked it.

**Prerequisites:**

* You must have completed the orientation to Control Center and the Observe module (M09 Lesson 1 or equivalent).
* Your sandbox account must have a role with **View traces** capability: Governance Manager, Auditor, Account Admin, or Org Admin. Developer and Viewer roles cannot access Audit Trails and will not be able to complete all steps.
* The sandbox environment must have a pre-configured agent that has been run at least once, with at least one Guardrail span and one Privacy span in the resulting trace.

## Your sandbox environment

**Environment access URL:** `<provided by your instructor>`

**Connection details:**

| **Field**                    | **Where to find it**                              |
| ---------------------------- | ------------------------------------------------- |
| **Agent name (for filter)**  | `<provided by your instructor>`                   |
| **Execution ID (if needed)** | Visible in the trace header once you open the run |
| **Your sandbox login email** | `<your registered email address>`                 |

**Pre-provisioned resources — you do not need to set these up:**

The following have already been configured in your sandbox before this exercise:

* A named agent with Sensitive Data Masking enabled (masking provider configured, entity rules set).
* At least one completed agent run containing LLM spans, Guardrail spans, and Privacy spans (PIIMaskingTokenize and PIIMaskingDetokenize).
* The agent's guardrail configuration is visible in Agent Config → Guardrails for cross-reference in Step 8.
* Your user account has been assigned a role with View traces and View audit logs capability.

## Configuration template

Not applicable. This exercise involves reading and inspecting an existing trace — you do not create or submit any configuration. All fields you will read are pre-populated by the platform from the agent's execution.

## Step-by-step instructions

{% stepper %}
{% step %}
**Procedure 1 — Navigate to Runs & Traces**

**Switch to Control Center**

From anywhere in the platform, locate the switcher beside the platform logo in the top navigation bar. Select Control Center.

You should see the Control Center left navigation, which lists: Operator, Observe, Cost Control, Evals, Govern, AI Gateway, and Admin.

{% hint style="success" %}
**Checkpoint:** Confirm the left navigation shows Observe as one of the listed modules. If you still see the Console navigation (Agents, Knowledge, Skills, etc.), you have not switched to Control Center — repeat this step.
{% endhint %}

*Top navigation bar showing the Console / Control Center switcher beside the platform logo, with Control Center selected*

**Open the Observe module**

In the Control Center left navigation, select Observe. Then select Runs & Traces.

You should see the Runs & Traces list, with columns for Conversation ID, Agent, Started At, Duration, and Status. Entries show a status of either Completed or Waiting.

*Runs & Traces list showing conversation rows with Completed and Waiting statuses*

{% hint style="info" %}
**Concept:** Runs & Traces records every agent execution in the account. Each row represents one thread — a conversation or session that may contain one or more runs. You are looking for the thread that contains the pre-configured sandbox run.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 2 — Locate the Pre-Configured Sandbox Run**

**Filter by agent name**

In the Runs & Traces filter bar, set the Agent filter to the agent name provided by your instructor. Leave all other filters at their defaults.

You should see the list narrow to threads associated with that agent. If the sandbox run was recent, it will appear near the top.

{% hint style="warning" %}
**Warning:** Filter criteria combine with AND. If you set both an agent name filter and a date range that excludes the sandbox run, no results will appear. If the list is empty after filtering, check the date range filter and widen it to cover the date the sandbox run was executed.
{% endhint %}

**Open the thread**

Select the thread row for the sandbox run. This opens the thread detail, which lists the traces (individual runs) within that conversation.

You should see at least one trace row showing an opening prompt, an identifier, a start time, a duration, and a span total.

*Thread detail showing one or more trace rows with identifiers, start times, and span counts*

**Open the trace**

Select the trace row to open it. The trace opens in Trace view by default.

You should see a list of spans in execution order. Each span shows its name, category tag, timestamp, and duration. The first span in the list is the root span.

{% hint style="success" %}
**Checkpoint:** Confirm you can see span category tags in the list. You should be able to identify at least one span labeled LLM, one labeled Guardrail, and one labeled Privacy. If the trace shows no spans, see the Troubleshooting section — "No traces to display."
{% endhint %}

*Trace view showing spans in execution order with category tags (LLM, Tool, Guardrail, Privacy) visible*
{% endstep %}

{% step %}
**Procedure 3 — Navigate the Three Trace Views**

**Explore Trace view**

You are already in Trace view. Scan the span list from top to bottom.

Notice that each span shows: name, category (Run, LLM, Tool, Retrieval, Reasoning, Guardrail, or Privacy), timestamp, and duration. Select any span to expand it and see its input and output as JSON.

{% hint style="info" %}
**Concept:** Trace view shows spans in execution order — the sequence in which the agent actually ran each step. This is the primary view for following the agent's reasoning path from input to output.
{% endhint %}

**Switch to Graph view**

Select the Graph tab (or Graph view button) above the span list.

You should see a visual representation of the trace as a graph, with parent/child relationships between spans. Each node is labeled with its span category.

*Trace graph view showing parent/child span relationships with category labels*

{% hint style="info" %}
**Concept:** Graph view shows which spans were called by which parent span. A Guardrail span that is a child of the root Run span ran at the input validation point. A Guardrail span that is a child of a Tool span ran at the post-skill execution point.
{% endhint %}

**Switch to Summary view**

Select the Summary tab above the span list.

You should see a plain-language walkthrough of the trace, along with totals for duration, span count, and token usage.

*Trace summary tab showing plain-language walkthrough and duration/token totals*

{% hint style="info" %}
**Tip:** Summary view is the fastest way to get an overview of what the agent did without reading raw JSON. Use it first when you receive an unfamiliar trace — it tells you the story; Trace view and Graph view give you the evidence.
{% endhint %}

{% hint style="success" %}
**Checkpoint:** Confirm you have visited all three views — Trace, Graph, and Summary — and that each shows a different representation of the same execution. Return to Trace view before continuing.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 4 — Inspect an LLM-Category Span**

**Locate an LLM span**

In Trace view, find a span with the category tag LLM. Select it to expand the span detail panel.

You should see the following fields in addition to name, timestamp, and duration: model, provider, input tokens, output tokens, credits, and cost.

{% hint style="info" %}
**Concept:** LLM spans are the only span category that reports model-level billing and token data. Every other span category (Tool, Guardrail, Privacy, Retrieval, Reasoning) reports only name, timestamp, duration, and input/output JSON. If you need to know which model served a call and at what cost, the LLM span is your source — not the LLM Logs screen, which is a flat list without execution context.
{% endhint %}

{% hint style="success" %}
**Checkpoint:** Confirm you can read the model and provider fields in the LLM span. Note the values — you will reference them in the scenario check.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 5 — Inspect a Guardrail-Category Span**

**Locate a Guardrail span**

In Trace view, find a span with the category tag Guardrail. Select it to expand the span detail panel.

You should see the span's result field, which shows either passed or blocked, and an execution point indicator showing whether the guardrail ran at the input or output stage.

{% hint style="warning" %}
**Warning:** The exact field names within a Guardrail span that identify which specific policy rule was applied are pending sandbox verification (see the Content Gaps note in the PKB). The mechanism — a Guardrail span records what ran and whether it passed or blocked — is confirmed. If you see additional fields in your sandbox that identify the specific rule, note them for your records; they may not appear in all environments.
{% endhint %}

{% hint style="success" %}
**Checkpoint:** Confirm the Guardrail span shows a result of either passed or blocked. Note which execution point it ran at (input or output). If you see a result of blocked, the agent's execution was interrupted at that point — the response was not passed to the next step.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 6 — Inspect a Privacy Span and Confirm PII Masking**

**Locate a Privacy span**

In Trace view, find a span with the category tag Privacy. Look specifically for a span named PIIMaskingTokenize.

Select it to expand the span detail panel.

You should see the span's input and output as JSON. The presence of this span confirms that PII masking ran — the agent detected sensitive data and replaced it with opaque tokens before passing the input to the model.

{% hint style="info" %}
**Concept:** Two Privacy spans appear in a trace when PII masking is active: PIIMaskingTokenize (masking ran on the input — PII replaced with tokens) and PIIMaskingDetokenize (tokens replaced back with original values in the output, for authorized downstream use). If you see only PIIMaskingTokenize and no PIIMaskingDetokenize, the output was returned in masked form.
{% endhint %}

{% hint style="success" %}
**Checkpoint:** Confirm a PIIMaskingTokenize span is present in the trace. Its presence is the evidence that PII masking executed on this run. If no Privacy span appears, the agent's Sensitive Data Masking toggle may be off — check Agent Config → Guardrails for this agent.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 7 — Read the Root Span Input**

**Open the root span**

In Trace view, select the first span in the list — the Run-category span at the top. This is the root span.

Expand the span detail panel and locate the input section (JSON).

You should see the following fields in the root span input: `executionId`, `triggerMethod`, `agentOptions`, `piiMaskingConfig`, `queueId`, `executorVersion`, `sdkVersion`, `requestId`.

{% hint style="info" %}
**Concept:** The root span's input is the invocation context — the full record of how this run was started and what configuration was in force at the moment of execution. The `piiMaskingConfig` field is particularly important for governance: it shows which masking provider was configured and whether masking was active at the time of this specific run, not just what the current configuration says.
{% endhint %}

**Read the piiMaskingConfig field**

In the root span input JSON, locate the `piiMaskingConfig` field.

Read its value. It will show the masking provider that was active (for example, Regex, Google Cloud DLP, AWS Comprehend, or Azure Text Analytics) and the entity rule configuration (Deny list or Allow list, and which entity types were in scope).

{% hint style="success" %}
**Checkpoint:** Confirm you can read the `piiMaskingConfig` field and identify the masking provider. This is the policy linkage step: the Guardrail span told you masking ran and whether it passed; the `piiMaskingConfig` field tells you which provider and rule set were in force.
{% endhint %}
{% endstep %}

{% step %}
**Procedure 8 — Link the Agent's Action to the Policy**

**Cross-reference Agent Config → Guardrails**

Open a new browser tab. Navigate to the agent's configuration in Agent Builder. Select the Guardrails tab.

You should see the Sensitive Data Masking toggle state, the configured masking provider, and the entity rule (Deny list or Allow list with the selected entity types). You should also see the Tool Execution Approval settings and the always-enforced Allowed LLM Families and Allowed LLM Providers.

*Agent Config Guardrails tab showing Sensitive Data Masking toggle, provider, and entity rule settings*

{% hint style="success" %}
**Checkpoint:** Confirm that the masking provider shown in Agent Config → Guardrails matches the `piiMaskingConfig` value you read in the root span input in Step 13. This match is the evidence chain: the policy was configured, the trace shows it ran, and the span result shows whether it passed or blocked.
{% endhint %}

{% hint style="info" %}
**Tip:** The Guardrail span result tells you what happened on this specific run. The Agent Config → Guardrails screen tells you what the policy says should happen. If the two are inconsistent — for example, masking is toggled on in config but no Privacy span appears in the trace — that is a gap worth escalating to your Platform Administrator.
{% endhint %}
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>Fixes for common problems in this lab</summary>

| **Symptom**                                                            | **Cause**                                                                                                                                | **Fix**                                                                                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"No traces to display" appears for the sandbox run**                 | The logs could not reconstruct spans — common for short or aborted runs, or when the date range filter excludes the run's execution date | Widen the date range filter, or search by execution ID if you have it. Use a sandbox run that completed successfully (Status: Completed).                                                                         |
| **Runs & Traces list is empty after filtering by agent name**          | The agent name filter may not match exactly, or the date range excludes the run                                                          | Clear the agent name filter and try searching by date range only. Confirm the agent name with your instructor.                                                                                                    |
| **Cannot access Audit Trails — permission error or menu item missing** | Your role is Developer or Viewer, neither of which has View audit logs capability                                                        | Confirm your role assignment with your Platform Administrator. You need Governance Manager, Auditor, Account Admin, or Org Admin to access Audit Trails.                                                          |
| **Cannot access Runs & Traces — permission error**                     | Your role is Viewer, which does not have View traces capability                                                                          | Confirm your role assignment. All roles except Viewer can view traces.                                                                                                                                            |
| **No Guardrail span visible in the trace**                             | The agent's guardrail configuration may not have triggered on this run, or the run was too short to reach a guardrail check point        | Confirm with your instructor that the sandbox run was designed to include a guardrail event. If the Sensitive Data Masking toggle is off in Agent Config → Guardrails, no Privacy or Guardrail spans will appear. |
| **No Privacy span (PIIMaskingTokenize) visible**                       | Sensitive Data Masking is toggled off for this agent, or the input did not contain any entity types in the configured Deny/Allow list    | Check Agent Config → Guardrails → Sensitive Data Masking toggle state. If it is on, confirm the entity types in the rule match the content of the sandbox run's input.                                            |
| **Learner confuses Audit Trails with Runs & Traces**                   | Common misconception — Audit Trails records administrative actions (who changed configuration), not agent execution steps                | Audit Trails answers "who changed what configuration." Runs & Traces answers "what did the agent do, step by step." They are separate stores with separate schemas.                                               |
| **LLM span does not show model/provider/token fields**                 | The span may be a different category — only LLM-category spans report model, provider, tokens, credits, and cost                         | Confirm the span's category tag reads **LLM** before looking for these fields. Tool, Guardrail, and Privacy spans do not include billing data.                                                                    |
| **Export email for Agent Analytics does not arrive**                   | Email delivery can be delayed; the export may have completed but the email is in transit                                                 | Navigate to `Control Center → Observe → Export` and check the Export History tab. The completed run will have a download link you can use directly.                                                               |

</details>

## Checkpoints and validation

The following embedded checkpoints summarize the verification steps distributed throughout the procedures above. Use this section as a final review before moving to the scenario check.

**Embedded checkpoints (formative, unscored):**

1. **Control Center navigation confirmed** — You can reach `Control Center → Observe → Runs & Traces` from the platform switcher. The left navigation shows Observe as a module.
2. **Thread and trace opened** — You located the sandbox agent's thread using the agent name filter, opened the thread to see its traces, and opened the trace to enter Trace view.
3. **Three views navigated** — You visited Trace view (spans in execution order), Graph view (parent/child relationships), and Summary view (plain-language walkthrough) and can describe what each shows.
4. **LLM span fields read** — You located an LLM-category span and read its model, provider, token, and cost fields.
5. **Guardrail span result read** — You located a Guardrail-category span and read its result (passed or blocked) and execution point (input or output).
6. **Privacy span confirmed** — You located a PIIMaskingTokenize span and confirmed PII masking ran on this execution.
7. **Root span piiMaskingConfig read** — You opened the root span input and identified the `piiMaskingConfig` field, including the masking provider and entity rule.
8. **Policy linkage complete** — You cross-referenced the `piiMaskingConfig` value in the root span against the Sensitive Data Masking configuration in Agent Config → Guardrails and confirmed they match.

### Summative Assessment

2 items — Apply level. Answer both before checking the solution reference.

<details>

<summary><strong>Item 1</strong></summary>

In the trace you just inspected, the Guardrail span at the input point shows blocked. What does this mean for the agent's execution?

A. The agent completed its run but logged a warning for review.

B. The agent's input was rejected at the guardrail check — the run did not proceed past that point.

C. The model call was made but the output was suppressed before being returned to the user.

D. The Sensitive Data Masking provider flagged the input but allowed it through in monitoring mode.

**Correct answer:** B

**Explanation:** A result of **blocked** on a Guardrail span at the input point means the guardrail ran in enforced mode and rejected the input before any further processing occurred. The agent did not proceed to the next step — no model call was made, no tool was invoked. This is distinct from monitoring mode, in which the guardrail runs and records a result but does not stop execution. If the span shows **passed**, the input cleared the guardrail and execution continued.

**Enabling objective:** EO-1 — link the agent's action to the policy that authorized or blocked it.

</details>

<details>

<summary><strong>Item 2</strong></summary>

A colleague says the Audit Trail will show you whether the agent's PII masking ran correctly on a specific execution. Are they right? Where would you actually look?

A. Yes — Audit Trails records every guardrail event, including PII masking results, with a timestamp and actor.

B. No — Audit Trails records configuration and access changes. To confirm PII masking ran on a specific execution, look for a PIIMaskingTokenize span in the execution's trace in Runs & Traces.

C. No — PII masking results are only visible in LLM Logs → Gateway Logs, where each model call records whether masking was applied.

D. Yes — Audit Trails records both configuration changes and runtime guardrail events in the same log.

**Correct answer:** B

**Explanation:** Audit Trails is the account change log — it records who changed what configuration or access (for example, who toggled Sensitive Data Masking on, or who was added as a user). It does not record what happened during an agent run. To confirm that PII masking ran on a specific execution, you look in Runs & Traces: a **PIIMaskingTokenize** span in the trace is the evidence that masking executed. The root span's `piiMaskingConfig` field shows which provider and rule set were in force for that run. LLM Logs records model call details (model, provider, tokens, cost, latency) — it does not record guardrail or masking events.

**Enabling objective:** EO-1 — distinguish Run & Trace records from Audit Trail records and identify the correct log for a given question.

</details>

## Solution reference

<details>

<summary>The completed state of your work</summary>

This section shows the completed state of the exercise — what you should have found and confirmed by the end of all eight procedures.

**Navigation path confirmed:**

`Console → [switcher] → Control Center → Observe → Runs & Traces`

**Trace located using:** Agent name filter (and optionally date range or execution ID)

### Three views and what each shows

| **View**         | **What it shows**                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------- |
| **Trace view**   | Spans in execution order, each with name, category, timestamp, duration, and input/output JSON |
| **Graph view**   | Parent/child span relationships with category tags — shows which span called which             |
| **Summary view** | Plain-language walkthrough of the execution with duration, span count, and token totals        |

### Span categories present in a complete sandbox trace

| **Category**  | **What it records**                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------- |
| **Run**       | The root span — the full execution context                                                      |
| **LLM**       | One model call — reports model, provider, input/output tokens, credits, cost                    |
| **Tool**      | A skill invocation                                                                              |
| **Retrieval** | A knowledge retrieval step                                                                      |
| **Reasoning** | A planning or decision step (e.g., DecideOptimalStrategy, Planning)                             |
| **Guardrail** | A guardrail check — reports result (passed/blocked) and execution point (input/output)          |
| **Privacy**   | A PII masking step — PIIMaskingTokenize (mask applied) and PIIMaskingDetokenize (mask reversed) |

**LLM span fields confirmed:** model, provider, input tokens, output tokens, credits, cost

**Guardrail span fields confirmed:** result (passed or blocked), execution point (input or output)

**Privacy span confirmed:** PIIMaskingTokenize present = PII masking executed on this run

**Root span input fields confirmed:** `executionId`, `triggerMethod`, `agentOptions`, `piiMaskingConfig`, `queueId`, `executorVersion`, `sdkVersion`, `requestId`

### Policy linkage completed

* `piiMaskingConfig` in root span input → identifies the masking provider and entity rule active at execution time
* Guardrail span result → confirms whether the guardrail passed or blocked
* Agent Config → Guardrails → Sensitive Data Masking → confirms the configured policy matches what the trace recorded

{% hint style="info" %}
**Note on Guardrail span field-level detail:** The exact field names within a Guardrail span that identify which specific policy rule was applied (beyond the result and execution point) are pending sandbox verification. If your sandbox shows additional fields identifying the rule name or rule ID, note them — they are not yet confirmed in the published source documentation and may vary by environment. The PKB flags this for SME confirmation before the lab guide is finalized for production.
{% endhint %}

</details>

{% hint style="success" %}
**Lab complete.** Confirm every checkpoint above before you move on.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/academy/tier-2-core-skills/m09-audit-trail-inspection-examiner-reporting/lab-2-navigate-and-inspect-a-run-and.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
