Setup tracing and document tracing usage (#12730)

This commit is contained in:
Micha Reiser 2024-08-08 08:28:40 +02:00 committed by GitHub
parent 5107a50ae7
commit dc6aafecc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 513 additions and 160 deletions

View file

@ -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| {