Skip to content

docs: fix Fusion slowest-nodes telemetry example - #9781

Merged
mirnawong1 merged 4 commits into
dbt-labs:currentfrom
br413:docs/fusion-telemetry-slowest-nodes-9717
Aug 27, 2026
Merged

mirnawong1 merged 4 commits into
dbt-labs:currentfrom
br413:docs/fusion-telemetry-slowest-nodes-9717

Conversation

@br413

@br413 br413 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the Fusion telemetry "slowest nodes" DuckDB example to rank by attributes.duration_ms (processing cost) instead of span wall-clock lifetime, which includes connection-gate queue time.

Also documents:

  • duration_ms vs span timestamp delta vs idle_time_ms
  • Optional QueryExecuted aggregation for pure warehouse time

Closes #9717

Checklist

Use attributes.duration_ms instead of span wall-clock for NodeProcessed ranking. Document duration_ms vs idle_time_ms vs QueryExecuted warehouse time. Closes dbt-labs#9717.
@br413
br413 requested a review from a team as a code owner August 11, 2026 05:26
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@br413 is attempting to deploy a commit to the dbt-labs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the content Improvements or additions to content label Aug 11, 2026
@br413

br413 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Following up on this docs fix for #9717 — the example now uses \�ttributes.duration_ms\ for slowest-nodes ranking instead of span wall-clock time. Small change, closes a common Fusion telemetry confusion. Happy to adjust if maintainers prefer different wording.

@br413

br413 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Friendly review nudge — fixes the duration_ms ranking example for Fusion telemetry (#9717). Happy to adjust if anything needs tightening.

@br413

br413 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Monthly review nudge — fixes \duration_ms\ ranking for Fusion telemetry slowest-nodes (#9717). Happy to adjust wording if needed.

@mirnawong1

Copy link
Copy Markdown
Contributor

hey @br413 sorry for the delay here and thanks for the nudge!

@vercel

vercel Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-getdbt-com Ready Ready Preview Aug 27, 2026 4:31pm

Request Review

""").show()
```

:::note Duration vs lifetime vs warehouse time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:::note Duration vs lifetime vs warehouse time
:::note Choose the right timing metric


:::note Duration vs lifetime vs warehouse time

- **`attributes.duration_ms`** on `NodeProcessed` spans reflects time spent processing the node (nested `NodeEvaluated` work), **excluding** idle time waiting on upstream nodes or internal backpressure. Use this attribute when ranking which nodes cost the most to process.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @br413 ! great additions and looks awesome! my only feedback is can we frame the note around chose the metric/timing that matches what the user wants to review. e.g.

:::note Choose the right timing metric

Telemetry provides several ways to measure node performance:

- **Processing time (`attributes.duration_ms`)** measures the time Fusion spent actively processing the node, including nested `NodeEvaluated` work. It excludes time spent waiting for upstream nodes or internal backpressure. Use this metric to identify the nodes that take the longest to process.
- **Node lifetime (`end_time_unix_nano - start_time_unix_nano`)** measures the full time from the start to the end of the span, including time spent waiting at the connection-limit gate. In builds with saturated threads, this metric might surface nodes with the longest queue time rather than the most processing work.
- **Idle time (`attributes.idle_time_ms`)** measures how long the node spent waiting instead of being actively processed, such as while waiting for an upstream node or available processing capacity. Use it to identify where resource constraints are causing delays.
- **Warehouse execution time** is the sum of `QueryExecuted` span durations for each `unique_id`. It excludes Fusion-side work such as compilation and static analysis. Use this metric to compare telemetry with your warehouse query history.

:::

if youre ok w the above, i can commit it for you. just wanted to double chck first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, thanks for your effort.
You can do it on your side. 😄

@mirnawong1

Copy link
Copy Markdown
Contributor

looks great thanks so much for opening this up and helping out the dbt community @br413 !

@mirnawong1
mirnawong1 merged commit c6a26e4 into dbt-labs:current Aug 27, 2026
3 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 36b4c602 Deployed Aug 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Improvements or additions to content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fusion telemetry: "slowest nodes" example measures node lifetime, not node cost

2 participants