Skip to content

feat: Add httpx2 integration page#17940

Open
sentrivana wants to merge 2 commits into
masterfrom
ivana/add-httpx2-integration
Open

feat: Add httpx2 integration page#17940
sentrivana wants to merge 2 commits into
masterfrom
ivana/add-httpx2-integration

Conversation

@sentrivana
Copy link
Copy Markdown
Contributor

@sentrivana sentrivana commented Jun 1, 2026

We've added a new integration to the Python SDK in getsentry/sentry-python#6463. This adds the docs page for it. Note: It's just a copy of the existing HTTPX page as the new package (HTTPX2) is a fork.

Preview:

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.): June 8
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jun 1, 2026 10:21am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jun 1, 2026 10:21am

Request Review

sentrivana added a commit to getsentry/sentry-python that referenced this pull request Jun 1, 2026
### Description

Support [httpx2](https://github.com/pydantic/httpx2).

Copy our httpx integration and tests and use that as the basis for the
new integration, so that if the new fork diverges, we can only edit the
dedicated integration.

Changes compared to `HttpxIntegration`:
- Renamed all httpx -> httpx2 (duh)
- Needed a replacement for `pytest-httpx`. Picked `httpx2-pytest` since
it's drop-in. Since it's a new project, pinned it to the current version
for additional safety.
- The tests needed adapting to be 3.14 compatible (httpx isn't tested on
3.14): `asyncio.get_event_loop().run_until_complete` -> `asyncio.run`

Docs: getsentry/sentry-docs#17940

#### Issues
- Closes #6448
- Closes
https://linear.app/getsentry/issue/PY-2502/add-support-for-httpx2

#### Reminders
- Please add tests to validate your changes, and lint your code using
`uv run ruff`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
@sentrivana sentrivana marked this pull request as ready for review June 1, 2026 10:27
@sentrivana sentrivana requested review from a team June 1, 2026 11:02
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