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

Refactor tracing usage #38

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

User344
Copy link
Member

@User344 User344 commented Dec 20, 2024

This PR improves usage of tracing library by abstracting away feature gate and making a simple no-op macro in case tracing feature is not turned on.
The main drawback of this PR is that all debug, error, info, trace and warn macros have to be exported in protoflow_core crate root, instead of being exported in something handly like crate::prelude::tracing::{debug, error}. I don't think its possible to not have it in root without making a whole new package.

Also tracing currently is only used in WriteSocket and ReadSocket blocks.

@User344 User344 added the enhancement New feature or request label Dec 20, 2024
@User344 User344 requested a review from artob as a code owner December 20, 2024 11:52
@arto-asimov arto-asimov changed the title Refactor usage of tracing crate Refactor tracing usage Dec 20, 2024
@arto-asimov arto-asimov self-assigned this Dec 20, 2024
Copy link
Member

@arto-asimov arto-asimov left a comment

Choose a reason for hiding this comment

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

LGTM.

@artob artob assigned artob and unassigned arto-asimov Dec 20, 2024
@artob artob merged commit 0cda080 into asimov-platform:master Dec 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants