Skip to content

feat: add request timing to Response#126

Merged
privateip merged 1 commit intoitential:mainfrom
privateip:http-request-timing
Mar 20, 2026
Merged

feat: add request timing to Response#126
privateip merged 1 commit intoitential:mainfrom
privateip:http-request-timing

Conversation

@privateip
Copy link
Member

  • Add started_at and finished_at ISO 8601 UTC timestamps to Response, captured around client.send() in both Connection and AsyncConnection
  • Add elapsed_ms property to Response that computes duration in whole milliseconds (truncated)
  • Extend Response.init to require started_at and finished_at as keyword-only arguments
  • Update all direct Response constructions in tests to pass timing constants
  • Add dedicated timing tests covering properties, elapsed_ms accuracy, truncation, and all HTTP methods

@privateip privateip requested a review from a team as a code owner March 20, 2026 00:35
- Add started_at and finished_at ISO 8601 UTC timestamps to Response, captured around client.send() in both Connection and AsyncConnection
- Add elapsed_ms property to Response that computes duration in whole milliseconds (truncated)
- Extend Response.__init__ to require started_at and finished_at as keyword-only arguments
- Update all direct Response constructions in tests to pass timing constants
- Add dedicated timing tests covering properties, elapsed_ms accuracy, truncation, and all HTTP methods
@privateip privateip force-pushed the http-request-timing branch from 9430eff to 8e0260d Compare March 20, 2026 00:46
@privateip privateip merged commit d449eab into itential:main Mar 20, 2026
7 checks passed
@privateip privateip deleted the http-request-timing branch March 20, 2026 00:48
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