Skip to content

feat(orchestrator): Telemetry - Trace the execution output artifacts info retrieval time - #335

Merged
morgan-wowk merged 1 commit into
masterfrom
tangle-inv-26772-output-info-span
Aug 17, 2026
Merged

feat(orchestrator): Telemetry - Trace the execution output artifacts info retrieval time#335
morgan-wowk merged 1 commit into
masterfrom
tangle-inv-26772-output-info-span

Conversation

@morgan-wowk

@morgan-wowk morgan-wowk commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Wraps the output-artifact get_info() resolution in the SUCCEEDED branch of internal_process_one_running_execution in a child span (orchestrator.get_output_artifact_info).

Why

This get_reader().get_info() call walks and stats every file of each output artifact on the single orchestrator thread. For a large Directory artifact (the inv-26772 trigger: ~88k per-merchant files) this is the confirmed freeze hot path — it runs for 40+ minutes and blocks all other executions. The span isolates that hot path within the parent processing span so its duration is directly measurable.

Timing-only, by design: per review, artifact byte size does not predict the stall (multi-gig artifacts resolve fast); file count is the meaningful dimension but is not available cheaply at this point, so no attribute is attached rather than a misleading one.

Impact

One child span per succeeded execution's output resolution, nested under orchestrator.process_running_execution from #334. No behavior change.

morgan-wowk commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

)
for output_name, uri in output_artifact_uris.items()
}
span.set_attribute(

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.

I'm not sure this is useful. There are many executions that output huge multi-gig artifacts. And they process super-fast.
Reporting the number of files would have been OK, but we don't have that at this moment.
P.S. If span reporting cannot work without attributes, then keep it of course.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I can remove this span attribute. Thank you for letting me know.,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done — removed the output.total_size attribute and pushed. The span is now timing-only, which is exactly the signal we want here (the get_info() dir-walk duration). Agreed on file count being the meaningful dimension; we don't have it cheaply today, so leaving it out rather than reporting a misleading size.

@Ark-kun Ark-kun changed the title feat(orchestrator): trace output artifact info resolution (the freeze hot path) feat(orchestrator): Telemetry - Trace the output artifact info retrieval timing Aug 17, 2026
@Ark-kun Ark-kun changed the title feat(orchestrator): Telemetry - Trace the output artifact info retrieval timing feat(orchestrator): Telemetry - Trace the output artifact info retrieval time Aug 17, 2026
@Ark-kun Ark-kun changed the title feat(orchestrator): Telemetry - Trace the output artifact info retrieval time feat(orchestrator): Telemetry - Trace the execution output artifacts info retrieval time Aug 17, 2026
@morgan-wowk
morgan-wowk force-pushed the tangle-inv-26772-output-info-span branch from 70cd297 to 752c063 Compare August 17, 2026 23:04

morgan-wowk commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Aug 17, 11:06 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Aug 17, 11:08 PM UTC: Graphite rebased this pull request as part of a merge.
  • Aug 17, 11:08 PM UTC: @morgan-wowk merged this pull request with Graphite.

@morgan-wowk
morgan-wowk changed the base branch from tangle-inv-26772-orchestrator-processing-span to graphite-base/335 August 17, 2026 23:06
@morgan-wowk
morgan-wowk changed the base branch from graphite-base/335 to master August 17, 2026 23:06
@morgan-wowk
morgan-wowk requested a review from a team August 17, 2026 23:06
@morgan-wowk
morgan-wowk force-pushed the tangle-inv-26772-output-info-span branch from 752c063 to 9f43f9d Compare August 17, 2026 23:07
@morgan-wowk
morgan-wowk merged commit 7658cbb into master Aug 17, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants