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

Add a Tracing Wrapper Package #14207

Merged
merged 10 commits into from
Aug 27, 2024
Merged

Add a Tracing Wrapper Package #14207

merged 10 commits into from
Aug 27, 2024

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Jul 11, 2024

What type of PR is this?

Optimization

What does this PR do? Why is it needed?

In the event a prysm node has disabled tracing, there is no need for the node to execute tracing related tasks while processing messages from gossip. In certain high traffic topics, this brings in an unnecessary load on the node which is not necessary. This PR introduces a wrapper package which creates an empty span in the event we do not want to run any tracing related paths.

Which issues(s) does this PR fix?

Fixes #

Other notes for review

@nisdas nisdas added the Ready For Review A pull request ready for code review label Jul 11, 2024
@nisdas nisdas requested a review from a team as a code owner July 11, 2024 11:30
Copy link
Contributor

@saolyn saolyn left a comment

Choose a reason for hiding this comment

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

Changes look good to me!

@saolyn saolyn added this pull request to the merge queue Aug 27, 2024
Merged via the queue into develop with commit 2f42f7e Aug 27, 2024
16 of 18 checks passed
@saolyn saolyn deleted the disableTracingCorrectly branch August 27, 2024 20:08
james-prysm pushed a commit that referenced this pull request Sep 6, 2024
* Adds a wrapper package

* Gazelle

* Add in Empty Span

* Revert It Back

* Add back reference

* Set It As Empty

* fix missing import

* remove redundant alias

* remove unused

---------

Co-authored-by: Sammy Rosso <[email protected]>
Co-authored-by: Saolyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants