Skip to content

fix(accounting): run consumer as hosted service#3608

Merged
julianocosta89 merged 2 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/accounting-graceful-shutdown
Jun 30, 2026
Merged

fix(accounting): run consumer as hosted service#3608
julianocosta89 merged 2 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/accounting-graceful-shutdown

Conversation

@cijothomas

@cijothomas cijothomas commented Jun 30, 2026

Copy link
Copy Markdown
Member

Runs the accounting Kafka consumer as a hosted background service so the .NET host owns shutdown and can cancel the consume loop on SIGTERM.

Validated with:

  • make build service=accounting
  • docker stop accounting exits cleanly and logs Application is shutting down... and Closing consumer.

Move the Kafka consumer into the .NET host lifecycle so shutdown cancellation can close the consumer cleanly.

Assisted-by: GitHub Copilot
@cijothomas
cijothomas requested a review from a team as a code owner June 30, 2026 05:06
Add the accounting graceful shutdown PR number to the changelog entry.

Assisted-by: GitHub Copilot
@cijothomas

Copy link
Copy Markdown
Member Author

Context: open-telemetry/semantic-conventions#3723 where I plan to have an official Event for OTel provider shutdowns.

@Kielek Kielek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@julianocosta89
julianocosta89 added this pull request to the merge queue Jun 30, 2026
Merged via the queue into open-telemetry:main with commit 13807ae Jun 30, 2026
56 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.

3 participants