Skip to content

feat: re-expose the embedder public API a distributed driver needs#29

Merged
mdashti merged 1 commit into
moe/protocol-grpc-shmfrom
moe/embedder-api
Jul 9, 2026
Merged

feat: re-expose the embedder public API a distributed driver needs#29
mdashti merged 1 commit into
moe/protocol-grpc-shmfrom
moe/embedder-api

Conversation

@mdashti

@mdashti mdashti commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

This PR re-exposes the worker-metrics API an out-of-crate driver needs, which datafusion-contrib#512 removed. It stacks on the transport-completion PR (#27).

What

  • DistributedExec::metrics_store() + public MetricsStore / MetricsStore::insert: so a driver can collect worker metrics out of crate.
  • decode_task_metrics: the worker-metrics proto to plain TaskMetrics decode.

Why

datafusion-contrib#512 dropped these as not-transport-concerns, with "what's worth making public in a follow up." This is that follow-up: the shm transport returns metrics over the mesh rather than over the coordinator_channel return stream, so its embedder files the decoded frames into the executed plan's store itself before the per-task EXPLAIN rewrite.

Please note that this surface would disappear entirely if the shm channel delivered TaskMetrics through its coordinator_channel return stream like gRPC does; that is a candidate follow-up, and this PR is the smaller cut until then.

@mdashti mdashti force-pushed the moe/protocol-grpc-shm branch from deb340e to 02ff23b Compare June 30, 2026 02:12
@mdashti mdashti force-pushed the moe/embedder-api branch 2 times, most recently from 328e142 to 3439f34 Compare July 1, 2026 23:15
@stuhood stuhood force-pushed the moe/protocol-grpc-shm branch 2 times, most recently from 3d4c5d8 to c46b2e3 Compare July 6, 2026 17:45
@stuhood stuhood force-pushed the moe/embedder-api branch from 3439f34 to 23e256a Compare July 6, 2026 22:17
@mdashti mdashti force-pushed the moe/embedder-api branch from 23e256a to 5f0b6a8 Compare July 9, 2026 21:32
@mdashti mdashti force-pushed the moe/protocol-grpc-shm branch 2 times, most recently from f07eb09 to 61552ba Compare July 9, 2026 22:57
@mdashti mdashti force-pushed the moe/embedder-api branch from 5f0b6a8 to 65c4505 Compare July 9, 2026 22:57
An out-of-crate driver collects worker metrics for its EXPLAIN rendering,
so it needs the metrics store with a public insert and a no-gRPC
decode_task_metrics.
@mdashti mdashti force-pushed the moe/embedder-api branch from 65c4505 to 903cd33 Compare July 9, 2026 23:03
@mdashti mdashti merged commit 903cd33 into moe/protocol-grpc-shm Jul 9, 2026
33 checks passed
@mdashti mdashti deleted the moe/embedder-api branch July 9, 2026 23:13
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.

1 participant