Skip to content

[codex] Fix Prometheus metrics response termination#1

Open
tomcasaburi wants to merge 1 commit into
masterfrom
codex/fix-prometheus-response
Open

[codex] Fix Prometheus metrics response termination#1
tomcasaburi wants to merge 1 commit into
masterfrom
codex/fix-prometheus-response

Conversation

@tomcasaburi

Copy link
Copy Markdown
Member

Summary

  • End the Prometheus metrics response with res.end(...) instead of writing without closing the response.

Root cause

The /metrics/prometheus route wrote the metrics payload but left the HTTP response open, causing clients like curl to receive data and then hang until timeout.

Impact

Metrics scrapes now complete normally while preserving the same response body and content type.

Validation

  • npm test
  • npm run typecheck

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.

1 participant