Skip to content

test(stdlib): Pin timestamps in add_http_request_source() patch#6160

Merged
alexander-alderman-webb merged 5 commits intomasterfrom
webb/stdlib/code-source-tests
Apr 29, 2026
Merged

test(stdlib): Pin timestamps in add_http_request_source() patch#6160
alexander-alderman-webb merged 5 commits intomasterfrom
webb/stdlib/code-source-tests

Conversation

@alexander-alderman-webb
Copy link
Copy Markdown
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Apr 28, 2026

Description

Overwrite span timestamps in a patch of add_http_request_source instead of a HTTPConnection subclass.

Enables creating an analogous version with the streaming lifecycle in #6154, as StreamedSpan._end() exits early when _timestamp is already set.

Issues

Reminders

@alexander-alderman-webb alexander-alderman-webb changed the title test(stdlib): Overwrite timestamps in getresponse instead of putrequest test(stdlib): Overwrite timestamps in getresponse() instead of putrequest() Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Codecov Results 📊

13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 10.00s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14868 uncovered lines.


Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb changed the title test(stdlib): Overwrite timestamps in getresponse() instead of putrequest() test(stdlib): Simulate timestamps only in add_http_request_source() Apr 28, 2026
@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review April 29, 2026 06:17
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner April 29, 2026 06:17
Comment thread tests/integrations/stdlib/test_httplib.py
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 22b2886. Configure here.

Comment thread tests/integrations/stdlib/test_httplib.py
@alexander-alderman-webb alexander-alderman-webb changed the title test(stdlib): Simulate timestamps only in add_http_request_source() test(stdlib): Only simulate timestamps in add_http_request_source() Apr 29, 2026
Base automatically changed from webb/stdlib/tests to master April 29, 2026 10:12
@alexander-alderman-webb alexander-alderman-webb changed the title test(stdlib): Only simulate timestamps in add_http_request_source() test(stdlib): Pin timestamps in add_http_request_source() patch Apr 29, 2026
@alexander-alderman-webb alexander-alderman-webb merged commit 086a231 into master Apr 29, 2026
156 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/stdlib/code-source-tests branch April 29, 2026 10:26
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