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(block-producer): instrument mempool #578

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

Mirko-von-Leipzig
Copy link
Contributor

@Mirko-von-Leipzig Mirko-von-Leipzig commented Dec 10, 2024

This PR adds tracing instrumentation to the mempool.

In addition, this PR also bumps tracing to v0.14 which now allows using constants for instrument targets. Before this we've had the unfortunate situation of using target = COMPONENT when emitting events, but having to manually set target = miden-node-<xxx> when using the #[instrument] macro. This PR fixes this; though I think our behaviour here could be improved.

Blocked by #577 as it refactors batch ID, and by #574 which added instrumentation which will require a minor tweak or two in this PR.

Closes a task in #519

`tracing` 0.1.41 added support for target = const` which will improve our instrumentation.
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Very nice! Thank you!

@Mirko-von-Leipzig Mirko-von-Leipzig force-pushed the mirko/feat/instrument-mempool branch from 1013cb8 to 077d3da Compare December 11, 2024 10:17
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 9986d74 into next Dec 11, 2024
8 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/feat/instrument-mempool branch December 11, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants