mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 04:48:18 +00:00
Deactivate tracing for choose version (#10351)
This commit is contained in:
parent
eb6ad9a4fa
commit
180a138161
3 changed files with 8 additions and 1 deletions
|
|
@ -67,3 +67,6 @@ url = { workspace = true }
|
|||
[dev-dependencies]
|
||||
insta = { version = "1.40.0" }
|
||||
toml = { workspace = true }
|
||||
|
||||
[features]
|
||||
tracing-durations-export = []
|
||||
|
|
|
|||
|
|
@ -1013,7 +1013,10 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
|
|||
///
|
||||
/// Returns `None` when there are no versions in the given range, rejecting the current partial
|
||||
/// solution.
|
||||
#[instrument(skip_all, fields(%package))]
|
||||
// TODO(konsti): re-enable tracing. This trace is crucial to understanding the
|
||||
// tracing-durations-export diagrams, but it took ~5% resolver thread runtime for apache-airflow
|
||||
// when I last measured.
|
||||
#[cfg_attr(feature = "tracing-durations-export", instrument(skip_all, fields(%package)))]
|
||||
fn choose_version(
|
||||
&self,
|
||||
package: &PubGrubPackage,
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ performance = [
|
|||
]
|
||||
performance-memory-allocator = ["dep:uv-performance-memory-allocator"]
|
||||
performance-flate2-backend = ["dep:uv-performance-flate2-backend"]
|
||||
tracing-durations-export = ["dep:tracing-durations-export", "uv-resolver/tracing-durations-export"]
|
||||
|
||||
# Introduces a dependency on a local Python installation.
|
||||
python = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue