Skip to content

Add cache hit/miss context to root execution span#256

Merged
morgan-wowk merged 1 commit into
masterfrom
execution-tracing-cache-context
Jun 5, 2026
Merged

Add cache hit/miss context to root execution span#256
morgan-wowk merged 1 commit into
masterfrom
execution-tracing-cache-context

Conversation

@morgan-wowk

@morgan-wowk morgan-wowk commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Add cache hit/miss attributes to execution root span

execution.cache.hit (bool), execution.cache_key, and
execution.cache.reused_from_id (on cache hits) allow tracing cache
efficiency and which source execution was reused.

Screenshots

Screenshot 2026-05-22 at 8.19.10 PM.png

@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from 23d81d9 to 57ba606 Compare May 22, 2026 23:28
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from fc29bb7 to 411831d Compare May 22, 2026 23:31
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from 57ba606 to 54e0001 Compare May 23, 2026 00:05
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch 2 times, most recently from df9765f to 6feaf73 Compare May 23, 2026 00:31
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch 2 times, most recently from 6f8a30a to a8e9b03 Compare May 23, 2026 02:57
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from 6feaf73 to c802f2b Compare May 23, 2026 02:57
@morgan-wowk morgan-wowk marked this pull request as ready for review May 23, 2026 03:22
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from a8e9b03 to 5a111d0 Compare May 26, 2026 23:27
@morgan-wowk morgan-wowk requested a review from Ark-kun as a code owner May 26, 2026 23:27
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from c802f2b to e4ead67 Compare May 26, 2026 23:27
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from 5a111d0 to 3baf255 Compare May 27, 2026 00:22
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from e4ead67 to 015d113 Compare May 27, 2026 00:23
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from 3baf255 to d7605f3 Compare May 29, 2026 18:52
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from 015d113 to c8b7609 Compare May 29, 2026 18:52
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch from d7605f3 to 4871348 Compare May 29, 2026 19:03
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from c8b7609 to 17209e2 Compare May 29, 2026 19:04

@yuechao-qin yuechao-qin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

THIS IS AMAZING!!!! Can't wait to use this!

"""Cache hit/miss attributes for the root execution span."""
attrs: dict[str, object] = {}
if execution.container_execution_cache_key is not None:
attrs["execution.cache_key"] = execution.container_execution_cache_key

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is cache key in our system/pipeline-run? Reused ID is pipeline run ID right?

@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from 17209e2 to fc9dd0f Compare June 1, 2026 20:02
@morgan-wowk morgan-wowk force-pushed the execution-tracing-launcher-type branch 2 times, most recently from 65e59b8 to bb72260 Compare June 2, 2026 23:53
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from fc9dd0f to aba0640 Compare June 2, 2026 23:53

morgan-wowk commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jun 5, 5:07 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 5, 5:13 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 5, 5:13 PM UTC: @morgan-wowk merged this pull request with Graphite.

@morgan-wowk morgan-wowk changed the base branch from execution-tracing-launcher-type to graphite-base/256 June 5, 2026 17:10
@morgan-wowk morgan-wowk changed the base branch from graphite-base/256 to master June 5, 2026 17:11
execution.cache.hit (bool), execution.cache_key, and
execution.cache.reused_from_id (on cache hits) allow tracing cache
efficiency and which source execution was reused.
@morgan-wowk morgan-wowk force-pushed the execution-tracing-cache-context branch from aba0640 to 08903a7 Compare June 5, 2026 17:12
@morgan-wowk morgan-wowk merged commit 02ba02d into master Jun 5, 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