You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: [P2] trace records fetch calls to data: URLs as HTTP accesses #74
fetch("data:text/plain,hello") returns the body hello without making an HTTP request, but trace records it as an HTTP access. As a result, ordinary local data processing is included in HTTP resource access totals.
Consistent with the HTTP(S) tracing described in the README, fetch calls that do not use HTTP should not be recorded as kind: "http".
Reproduction
The fetch call is executed normally. Only file writes are mocked.
The fetch wrapper calls recordHttpAccess without checking the URL scheme. Tests should verify that data URLs are excluded from HTTP access records while regular HTTP/HTTPS tracing continues to work.
Validation scope
Verified using the trace implementation compiled from the specified commit. Because the environment was read-only, file creation and evidence writes were replaced with in-memory mocks. After building the repository, save the reproduction code as repro.mjs in the repository root and run it with node repro.mjs. The full test suite was not run.
If you find this repository useful, please consider giving it a star.
Activity
[-]bug: [P2] trace が data: URL の fetch を HTTP アクセスとして記録する[/-][+]bug: [P2] trace records fetch calls to data: URLs as HTTP accesses[/+]