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

fix: split http instrumentation to core logic and http lib integration #482

Merged
merged 19 commits into from
Jun 3, 2024

Conversation

sagivoululumigo
Copy link
Contributor

@sagivoululumigo sagivoululumigo commented May 8, 2024

This is the first stage of adding native node fetch instrumentation.

This PR splits the existing http library instrumentation to the core logic of tracing a generic http request (the BaseHttp class) and the instrumentation connecting that logic to the http / https libraries (the Http class).

The next stage will be in a separate PR that will use the BaseHttp class to integrate to a new http library called undici (This is the library that native node fetch uses behind the scenes)

@sagivoululumigo sagivoululumigo force-pushed the RD-12714-generalize-current-http-instrumentation branch from dc6e7c7 to 0b36ed7 Compare May 8, 2024 11:20
src/spans/awsSpan.ts Outdated Show resolved Hide resolved
src/utils/w3cUtils.ts Show resolved Hide resolved
src/utils/w3cUtils.ts Show resolved Hide resolved
src/utils/w3cUtils.test.ts Outdated Show resolved Hide resolved
src/hooks/baseHttp.test.js Show resolved Hide resolved
src/hooks/baseHttp.ts Outdated Show resolved Hide resolved
src/hooks/baseHttp.ts Outdated Show resolved Hide resolved
src/hooks/baseHttp.ts Show resolved Hide resolved
src/hooks/baseHttp.ts Outdated Show resolved Hide resolved
src/hooks/baseHttp.ts Outdated Show resolved Hide resolved
@sagivoululumigo sagivoululumigo marked this pull request as draft May 9, 2024 14:08
@sagivoululumigo sagivoululumigo marked this pull request as ready for review May 12, 2024 13:21
Copy link
Contributor

@GuyMoses GuyMoses left a comment

Choose a reason for hiding this comment

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

since you’ve moved a lot of code, it's hard to follow the PR.
I suggest to mark areas that were only relocated, so that the the CR could be focused on altered/ new lines mainly

@GuyMoses GuyMoses merged commit 947fbd0 into master Jun 3, 2024
9 of 10 checks passed
@GuyMoses GuyMoses deleted the RD-12714-generalize-current-http-instrumentation branch June 3, 2024 08:53
lumigo-circleci-github-user pushed a commit that referenced this pull request Jun 3, 2024
## [1.93.1](v1.93.0...v1.93.1) (2024-06-03)

### Bug Fixes

* split http instrumentation to core logic and http lib integration ([#482](#482)) ([947fbd0](947fbd0))
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.

3 participants