Skip to content

Ignore httpx in pyspy monitoring like we do requests#11499

Merged
mekarpeles merged 2 commits intomasterfrom
fix/ignore-httpx-in-pyspy-monitoring
Nov 22, 2025
Merged

Ignore httpx in pyspy monitoring like we do requests#11499
mekarpeles merged 2 commits intomasterfrom
fix/ignore-httpx-in-pyspy-monitoring

Conversation

@cdrini
Copy link
Copy Markdown
Collaborator

@cdrini cdrini commented Nov 20, 2025

Closes #

Technical

Testing

Screenshot

Stakeholders

Copilot AI review requested due to automatic review settings November 20, 2025 21:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the py-spy monitoring script to filter out httpx and httpcore library calls (similar to how requests library calls are already filtered) and refactors the worker PID finding logic into a reusable function.

Key changes:

  • Extracts worker PID discovery into a dedicated find_worker_pids() function
  • Adds httpcore and httpx to the list of libraries filtered from py-spy stack traces

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cdrini cdrini added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Nov 20, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mekarpeles mekarpeles merged commit b03df2c into master Nov 22, 2025
8 checks passed
@mekarpeles mekarpeles deleted the fix/ignore-httpx-in-pyspy-monitoring branch November 22, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants