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

Use #[tracing::instrument] #49

Open
AbooMinister25 opened this issue Jul 30, 2023 · 0 comments
Open

Use #[tracing::instrument] #49

AbooMinister25 opened this issue Jul 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AbooMinister25
Copy link
Contributor

AbooMinister25 commented Jul 30, 2023

Rather than manually creating spans like in the following:

let span = span!(Level::INFO, "Job", name = job.name, version = job.version);

you could instead use instrument your functions with tracing::instrument - I'd also propose doing this in more places where there weren't spans created before.

@jonathan-d-zhang jonathan-d-zhang added the enhancement New feature or request label Jul 30, 2023
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

No branches or pull requests

2 participants