Skip to content

[WIP] Update logging for trace options configuration#124864

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/update-logging-for-trace-options
Closed

[WIP] Update logging for trace options configuration#124864
Copilot wants to merge 1 commit intomainfrom
copilot/update-logging-for-trace-options

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

  • Add _backgroundServiceExceptions list to Host.cs to capture background service exceptions
  • In TryExecuteBackgroundServiceAsync, capture exceptions with ExceptionDispatchInfo when BackgroundServiceExceptionBehavior.StopHost
  • At the end of StopAsync, rethrow captured exceptions (single exception or AggregateException for multiple)
  • Add BackgroundServiceExceptionsPropagating event ID to LoggerEventIds.cs
  • Add BackgroundServiceExceptionsPropagating log method to HostingLoggerExtensions.cs
  • Add tests for exception propagation to existing HostTests.cs
  • Build and verify no regressions

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@svick svick closed this Feb 25, 2026
@svick svick deleted the copilot/update-logging-for-trace-options branch February 25, 2026 16:58
Copilot AI requested a review from svick February 25, 2026 16:58
Copilot stopped work on behalf of svick due to an error February 25, 2026 16:58
@svick svick removed their request for review February 25, 2026 16:58
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