Skip to content

Fix diagnostic event XML docs that misstate when events are raised - #10674

Merged
glen-84 merged 1 commit into
mainfrom
gai/diagnostic-event-xml-docs
Oct 23, 2026
Merged

glen-84 merged 1 commit into
mainfrom
gai/diagnostic-event-xml-docs

Conversation

@glen-84

@glen-84 glen-84 commented Oct 23, 2026

Copy link
Copy Markdown
Member

Summary

Brings the XML docs of the diagnostic events in line with when the events are raised, matching the event tables that #10672 corrected on the instrumentation page:

  • RequestError(RequestContext, Exception) is called when an exception aborts the request, and within the ParseDocument scope when the document cannot be parsed. Resolver exceptions raise ResolverError, so they are no longer listed.
  • RequestError(RequestContext, IError) is called when a pipeline step reports a GraphQL error that terminates the request, without promising that every such error is reported through it.
  • StartProcessing and StopProcessing describe the engine starting, resuming, and pausing, RunTask and TaskError name a deferred fragment as their example task, and BatchEvaluated is raised once per run of evaluations that dispatch no batch.

Copilot AI left a comment

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.

🟢 Approval recommended

The documentation changes are consistent, focused, and have no unresolved review issues.

No open issues 🎉

What changed in this PR

This pull request corrects XML documentation for diagnostic events so it accurately describes when execution, request-error, task, and DataLoader events are raised.

Changes:

  • Clarifies exception and GraphQL-error request event semantics.
  • Updates execution processing, task, and deferred-fragment descriptions.
  • Documents that BatchEvaluated is emitted once per evaluation run without batch dispatch.
File Description
src/​HotChocolate/​Core/​src/​Types/​Execution/​Instrumentation/​IExecutionDiagnosticEvents.cs Corrects task and execution-processing event documentation.
src/​HotChocolate/​Core/​src/​Execution.Abstractions/​Execution/​Instrumentation/​ICoreExecutionDiagnosticEvents.cs Clarifies request exception and GraphQL-error event semantics.
src/​GreenDonut/​src/​GreenDonut/​Instrumentation/​IDataLoaderDiagnosticEvents.cs Clarifies when BatchEvaluated is raised.

Review effort: Lite

@glen-84
glen-84 merged commit 4325f5c into main Oct 23, 2026
158 checks passed
@glen-84
glen-84 deleted the gai/diagnostic-event-xml-docs branch October 23, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants