Skip to content

fix: harden service middleware and shutdown#51

Merged
darthfork merged 2 commits intomainfrom
issue-37-service-hardening
Apr 30, 2026
Merged

fix: harden service middleware and shutdown#51
darthfork merged 2 commits intomainfrom
issue-37-service-hardening

Conversation

@darthfork
Copy link
Copy Markdown
Owner

Summary

  • fix HTTP status recording so middleware captures explicit and implicit response codes correctly
  • add graceful shutdown handling for SIGTERM/SIGINT and make router metrics injectable for isolated tests
  • reduce hot-path request logging noise by logging successful requests at debug level

Closes #37

Testing

  • go test ./...

@darthfork darthfork merged commit a5dbd23 into main Apr 30, 2026
1 check passed
@darthfork darthfork deleted the issue-37-service-hardening branch April 30, 2026 02:04
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.

Improve service correctness, operability, and testability for production deployments

1 participant