Skip to content

feat: add host filtering for network profiler#456

Merged
gibiw merged 4 commits intomainfrom
feat/network-profiler-exclude-hosts
Feb 16, 2026
Merged

feat: add host filtering for network profiler#456
gibiw merged 4 commits intomainfrom
feat/network-profiler-exclude-hosts

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Feb 16, 2026

Summary

Closes #455

  • Add excludeHosts option for network profiler in profilers config (supports mixed string/object format)
  • Add QASE_PROFILER_NETWORK_EXCLUDE_HOSTS environment variable for comma-separated excluded hosts
  • Fix bug where _requests_send_wrapper did not filter excluded domains (only urllib3 wrapper did)
  • Qase API host (testops.api.host) is always excluded automatically

Config format

{
  "profilers": [
    { "name": "network", "excludeHosts": ["telemetry.local", "monitoring.internal"] },
    "db"
  ]
}

Backward-compatible: "profilers": ["network"] still works as before.

Test plan

  • 16 new tests in test_network_profiler.py — all pass
  • All 185 existing tests pass (no regressions)
  • Backward compatibility: string-only profilers config works
  • Mixed format: dict + string in profilers list parses correctly
  • Env var: QASE_PROFILER_NETWORK_EXCLUDE_HOSTS is picked up
  • Bug fix: requests library wrapper now skips excluded hosts

Support mixed profilers config format (strings and objects) with
excludeHosts option for the network profiler. Add QASE_PROFILER_NETWORK_EXCLUDE_HOSTS
env var. Fix bug where _requests_send_wrapper ignored domain filtering.
@cursor
Copy link

cursor bot commented Feb 16, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 13.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@gibiw gibiw changed the base branch from master to main February 16, 2026 17:25
Add changelog entry for network profiler host filtering feature and
requests wrapper bug fix.
…DME;

Add docs/NETWORK_PROFILER.md with configuration reference for host
filtering. Add Profilers section to README with overview of all
available profilers and mixed config format examples.
The tox config referenced an 'all' extra that doesn't exist in
pyproject.toml, causing CI failures. Only 'testing' extra is available.
@gibiw gibiw merged commit 1592be0 into main Feb 16, 2026
36 checks passed
@gibiw gibiw deleted the feat/network-profiler-exclude-hosts branch February 16, 2026 17:39
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.

Exclude hosts from network profiler

1 participant

Comments