Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export agent pool stats #481

Merged
merged 3 commits into from
Dec 21, 2023
Merged

feat: export agent pool stats #481

merged 3 commits into from
Dec 21, 2023

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Dec 21, 2023

No description provided.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5bb3a62) 98.76% compared to head (16e93b5) 98.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #481      +/-   ##
==========================================
+ Coverage   98.76%   98.79%   +0.03%     
==========================================
  Files          10       10              
  Lines        1542     1583      +41     
  Branches      268      272       +4     
==========================================
+ Hits         1523     1564      +41     
  Misses         19       19              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fengmk2 fengmk2 added the enhancement New feature or request label Dec 21, 2023
@fengmk2
Copy link
Member Author

fengmk2 commented Dec 21, 2023

after sleep stats: {
  'http://localhost:64466': { connected: 0, free: 0, pending: 0, queued: 0, running: 0, size: 0 },
  'http://registry.npmjs.org/': { connected: 0, free: 0, pending: 0, queued: 0, running: 0, size: 0 },
  'https://registry.npmjs.org/': { connected: 0, free: 0, pending: 0, queued: 0, running: 0, size: 0 },
  'http://localhost:64488': { connected: 0, free: 0, pending: 0, queued: 0, running: 0, size: 0 },
  'http://localhost:64490': { connected: 0, free: 0, pending: 0, queued: 0, running: 0, size: 0 }
}

@fengmk2 fengmk2 merged commit 5f9be29 into master Dec 21, 2023
19 of 20 checks passed
@fengmk2 fengmk2 deleted the export-agent-pool-stats branch December 21, 2023 16:47
fengmk2 pushed a commit that referenced this pull request Dec 21, 2023
[skip ci]

## [3.22.0](v3.21.0...v3.22.0) (2023-12-21)

### Features

* export agent pool stats ([#481](#481)) ([5f9be29](5f9be29))
@fengmk2
Copy link
Member Author

fengmk2 commented Dec 22, 2023

undici 的几个 Claas 的关系:

Agent --> (orgin: pool) Pool -> Client
    |
    +-> (orgin: client, connections = 1) Client 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant