Skip to content

feat(profiling-node): Refactor deprecated methods & non-hook variant #10984

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

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Mar 8, 2024

Since all clients have hooks now, we only have this single method for instrumentation left.

I also refactored this to not use startTransaction / finishTransaction anymore, but instead use spanStart & spanEnd. Everything is now centered around spans, also profiling, this just looks at root spans now, which should be functionally the same.

I have not checked if there is any behavior that used to be only tested in non-hook tests - I simply deleted all non-hooks-only tests. (some of the general ones I just refactored to the hooks version, as far as this was visible from the test structure/naming).

Since all clients have hooks now, we only have this single method for instrumentation left.

I also refactored this to not use `startTransaction` / `finishTransaction` anymore, but instead use `spanStart` & `spanEnd`.
@mydea mydea requested review from JonasBa and AbhiPrasad March 8, 2024 12:36
@mydea mydea self-assigned this Mar 8, 2024
Copy link
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

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

Oh man, this is nice @mydea 🔥 Thank you so much!

@mydea mydea merged commit 18bc035 into develop Mar 11, 2024
@mydea mydea deleted the fn/nodeProfiling-hooks branch March 11, 2024 08:29
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