Repository navigation
docs: fix Fusion slowest-nodes telemetry example - #9781
Conversation
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 is attempting to deploy a commit to the dbt-labs Team on Vercel. A member of the Team first needs to authorize it. |
|
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. |
|
Friendly review nudge — fixes the duration_ms ranking example for Fusion telemetry (#9717). Happy to adjust if anything needs tightening. |
|
Monthly review nudge — fixes \duration_ms\ ranking for Fusion telemetry slowest-nodes (#9717). Happy to adjust wording if needed. |
|
hey @br413 sorry for the delay here and thanks for the nudge! |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| """).show() | ||
| ``` | ||
|
|
||
| :::note Duration vs lifetime vs warehouse time |
There was a problem hiding this comment.
| :::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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Yeah, thanks for your effort.
You can do it on your side. 😄
|
looks great thanks so much for opening this up and helping out the dbt community @br413 ! |
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_msvs span timestamp delta vsidle_time_msQueryExecutedaggregation for pure warehouse timeCloses #9717
Checklist