Conversation
This comment has been minimized.
This comment has been minimized.
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: 4f4ae430826a6c8c371b08ae |
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 11 changed, 0 removedBuild ID: ac25c6586d8308e5efbeae6c URL: https://www.apollographql.com/docs/deploy-preview/ac25c6586d8308e5efbeae6c |
goto-bus-stop
left a comment
There was a problem hiding this comment.
Pre-approval assuming comments are addressed in a manner considered adequate by the PR author 🫡
Co-authored-by: Renée <renee.kooi@apollographql.com>
| // When cooperative cancellation is enabled, we want to cancel the query planner | ||
| // task if the request is canceled. | ||
| if self.cooperative_cancellation.is_enabled() { | ||
| let outcome_recorded = Arc::new(AtomicU8::new(Outcome::None as u8)); |
There was a problem hiding this comment.
Outcome needs to be documented in the docs.
There was a problem hiding this comment.
I think docs will be a follow up, because merging docs for unreleased features into dev goes straight to the public docs website...
There was a problem hiding this comment.
Is there a way to include comments in our MDX doc files? That way releasing the feature would just involve uncommenting the docs that were added as part of this PR.
There was a problem hiding this comment.
Popping in here from Edu team! I'm not as familiar with the router side of docs, but I did come across this PR on the MCP server that uncomments out the part of the docs so it seems like it should be possible!
There was a problem hiding this comment.
I added docs that explain outcome to the metric docs.
refactor cooperative cancellation default config use humantime for CC timeout
BrynCooke
left a comment
There was a problem hiding this comment.
Approved, but make sure to manually check the spans.
Cooperative Cancellation for Query Planning
This release introduces cooperative cancellation support for query planning operations. This feature allows the router to gracefully handle query planning timeouts and cancellations, improving resource utilization. Metrics are emitted for cooperative cancellation:
Records the "outcome" of query planning on the apollo.router.query_planning.plan.duration metric.
Records the "outcome" of query planning on the query_planning span.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
A lot of (if not most) features benefit from built-in observability and
debug-level logs. Please read this guidance on metrics best-practices. ↩Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩