mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Setup tracing and document tracing usage (#12730)
This commit is contained in:
parent
5107a50ae7
commit
dc6aafecc2
21 changed files with 513 additions and 160 deletions
|
@ -14,7 +14,7 @@ use crate::Db;
|
|||
#[salsa::tracked]
|
||||
pub fn source_text(db: &dyn Db, file: File) -> SourceText {
|
||||
let path = file.path(db);
|
||||
let _span = tracing::trace_span!("source_text", file=?path).entered();
|
||||
let _span = tracing::trace_span!("source_text", file = %path).entered();
|
||||
|
||||
let is_notebook = match path {
|
||||
FilePath::System(system) => system.extension().is_some_and(|extension| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue