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

inspector: add Network.Initiator in inspector protocol #56805

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legendecas
Copy link
Member

Add initiator stack trace in inspector network events, reflecting
the location where the script created the request.

The http.client.request.created event is closer to where user code
creates the http request, and correctly reflects which script
initiated the request.

Refs: #53946

Add initiator stack trace in inspector network events, reflecting
the location where the script created the request.

The `http.client.request.created` event is closer to where user code
creates the http request, and correctly reflects which script
initiated the request.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/gyp

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jan 28, 2025
@legendecas legendecas added inspector Issues and PRs related to the V8 inspector protocol c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. and removed c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Jan 28, 2025
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.22%. Comparing base (0aa5874) to head (c024b40).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56805      +/-   ##
==========================================
- Coverage   89.22%   89.22%   -0.01%     
==========================================
  Files         663      663              
  Lines      191974   191981       +7     
  Branches    36916    36923       +7     
==========================================
+ Hits       171286   171287       +1     
- Misses      13558    13559       +1     
- Partials     7130     7135       +5     
Files with missing lines Coverage Δ
lib/internal/inspector/network_http.js 94.69% <100.00%> (ø)
lib/internal/inspector/network_undici.js 93.61% <100.00%> (ø)
src/inspector/network_agent.cc 95.19% <100.00%> (+0.29%) ⬆️
src/inspector/network_inspector.cc 90.00% <100.00%> (ø)
src/inspector/network_inspector.h 100.00% <ø> (ø)
src/inspector_agent.cc 79.77% <100.00%> (+0.02%) ⬆️

... and 32 files with indirect coverage changes

@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 29, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 29, 2025
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@legendecas
Copy link
Member Author

The CI failure on SmartOS seems related to the change, will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants