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

Tweak logging annotations to simplify performance troubleshooting #4100

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Jul 25, 2023

While analysing the run time for wasmer run, I made a couple tweaks to our #[tracing::instrument] annotations so the DEBUG level logs are less spammy.

I also annotated a couple sections of code that weren't previously annotated and added a --log-format flag that can be used to switch the log format between text and JSON. I find JSON tends to be easier to read and analyse, especially when you use a Python REPL or with jq.

Additionally, I've made main wasmer crate use tracing unconditionally because it doesn't make much sense to put logging behind a feature flag.

@Michael-F-Bryan Michael-F-Bryan changed the title Tweak #[tracing::instrument] annotations to simplify performance troubleshooting Tweak logging annotations to simplify performance troubleshooting Jul 25, 2023
@Michael-F-Bryan Michael-F-Bryan merged commit 69c0aa2 into master Jan 12, 2024
52 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the tweaked-logs branch January 12, 2024 07:49
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.

2 participants