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: implement native node fetch instrumentation #483

Open
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

sagivoululumigo
Copy link
Contributor

No description provided.

@sagivoululumigo sagivoululumigo changed the title feat: implement undici instrumentation feat: implement native node fetch instrumentation May 27, 2024
@sagivoululumigo sagivoululumigo changed the base branch from master to RD-12714-generalize-current-http-instrumentation May 27, 2024 17:27
Copy link
Contributor

@harelmo-lumigo harelmo-lumigo left a comment

Choose a reason for hiding this comment

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

Nice one! 💯

tsconfig.json Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
src/hooks/fetch.ts Outdated Show resolved Hide resolved
src/hooks/fetch.ts Show resolved Hide resolved
src/hooks/fetch.ts Outdated Show resolved Hide resolved
src/hooks/fetch.ts Outdated Show resolved Hide resolved
Comment on lines +295 to +301
for (let i = 0; i < 10000; i++) {
const { done, value } = await reader.read();
if (done) {
break;
}
result += decoder.decode(value);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can truncate the data here, instead of reading it all and truncating it later

Base automatically changed from RD-12714-generalize-current-http-instrumentation to master June 3, 2024 08:53
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.

None yet

2 participants