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

Rust: use tracing/tracing-subscriber for logging #18608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aibaars
Copy link
Contributor

@aibaars aibaars commented Jan 28, 2025

This PR changes the logging system in the Rust codebase to use the tracing and tracing-subscriber crates and configures them the same way as the Ruby extractor. In addition it adds the possibility to collect flame graph data by ssetting CODEQL_EXTRACTOR_RUST_OPTION_FLAME_LOG to a file path. The collected data can be visualised as a flame graph or chart using the inferno tool .

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jan 28, 2025
@aibaars aibaars marked this pull request as ready for review February 3, 2025 10:22
@Copilot Copilot bot review requested due to automatic review settings February 3, 2025 10:22
@aibaars aibaars requested a review from a team as a code owner February 3, 2025 10:22

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again, by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant