Skip to content

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 AbhiPrasad and JonasBa 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.

4 participants